Class: Maker::Commands::Verify

Inherits:
Object
  • Object
show all
Defined in:
lib/maker/commands/verify.rb

Instance Method Summary collapse

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, options)
  run
end

Instance Method Details

#clientObject



20
21
22
# File 'lib/maker/commands/verify.rb', line 20

def client
  @client ||= Maker::Client.new
end

#runObject



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

#serverObject



16
17
18
# File 'lib/maker/commands/verify.rb', line 16

def server
  @server ||= Maker::Server.new(client.fields['email'])
end

#stageObject



24
25
26
# File 'lib/maker/commands/verify.rb', line 24

def stage
  client.fields['stage']
end