File tree 4 files changed +52
-0
lines changed
4 files changed +52
-0
lines changed Original file line number Diff line number Diff line change 1
1
require 'pact_broker/client/cli/broker'
2
+
3
+ class Thor
4
+ module Base
5
+ module ClassMethods
6
+
7
+ def basename
8
+ # chomps the trailing .rb so it doesn't show in the help text
9
+ File . basename ( $PROGRAM_NAME) . split ( " " ) . first . chomp ( ".rb" )
10
+ end
11
+ end
12
+ end
13
+ end
14
+
2
15
PactBroker ::Client ::CLI ::Broker . start
Original file line number Diff line number Diff line change 1
1
require 'pact/mock_service/cli'
2
+
3
+ class Thor
4
+ module Base
5
+ module ClassMethods
6
+
7
+ def basename
8
+ # chomps the trailing .rb so it doesn't show in the help text
9
+ File . basename ( $PROGRAM_NAME) . split ( " " ) . first . chomp ( ".rb" )
10
+ end
11
+ end
12
+ end
13
+ end
14
+
2
15
Pact ::MockService ::CLI . start
Original file line number Diff line number Diff line change 1
1
require 'pact/provider_verifier/cli/verify'
2
+
3
+ class Thor
4
+ module Base
5
+ module ClassMethods
6
+
7
+ def basename
8
+ # chomps the trailing .rb so it doesn't show in the help text
9
+ File . basename ( $PROGRAM_NAME) . split ( " " ) . first . chomp ( ".rb" )
10
+ end
11
+ end
12
+ end
13
+ end
14
+
2
15
Pact ::ProviderVerifier ::CLI ::Verify . start
Original file line number Diff line number Diff line change 1
1
require 'pact/stub_service/cli'
2
+
3
+ class Thor
4
+ module Base
5
+ module ClassMethods
6
+
7
+ def basename
8
+ # chomps the trailing .rb so it doesn't show in the help text
9
+ File . basename ( $PROGRAM_NAME) . split ( " " ) . first . chomp ( ".rb" )
10
+ end
11
+ end
12
+ end
13
+ end
14
+
2
15
Pact ::StubService ::CLI . start
You can’t perform that action at this time.
0 commit comments