Class: Maker::Commands::Verify
- Inherits:
-
Object
- Object
- Maker::Commands::Verify
- Defined in:
- lib/maker/commands/verify.rb
Instance Method Summary collapse
- #client ⇒ Object
-
#initialize(args, options) ⇒ Verify
constructor
A new instance of Verify.
- #run ⇒ Object
- #server ⇒ Object
- #stage ⇒ Object
Constructor Details
#initialize(args, options) ⇒ Verify
Returns a new instance of Verify.
6 7 8 |
# File 'lib/maker/commands/verify.rb', line 6 def initialize(args, ) run end |
Instance Method Details
#client ⇒ Object
20 21 22 |
# File 'lib/maker/commands/verify.rb', line 20 def client @client ||= Maker::Client.new end |
#run ⇒ Object
10 11 12 13 14 |
# File 'lib/maker/commands/verify.rb', line 10 def run fail Maker::NotRegisteredError unless client.registered? @results = MakerWebsite::RunRSpec.with(file_name: file_name) handle_results end |
#server ⇒ Object
16 17 18 |
# File 'lib/maker/commands/verify.rb', line 16 def server @server ||= Maker::Server.new(client.fields['email']) end |
#stage ⇒ Object
24 25 26 |
# File 'lib/maker/commands/verify.rb', line 24 def stage client.fields['stage'] end |