Class: VerifyCommand

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ VerifyCommand

Returns a new instance of VerifyCommand.



11
12
13
# File 'lib/commands/verify_command.rb', line 11

def initialize(args)
  @api = args[:api]
end

Class Method Details

.new_with_defaults(options) ⇒ Object



2
3
4
5
6
7
8
9
# File 'lib/commands/verify_command.rb', line 2

def self.new_with_defaults(options)
  shell = ShellWrapper.new
  config = Configuration.new(shell)
  networking = Networking.new(config, options[:is_retry_enabled])
  api = API.new(shell, config, networking, options)

  VerifyCommand.new(api: api)
end

Instance Method Details

#runObject



15
16
17
# File 'lib/commands/verify_command.rb', line 15

def run
  @api.verify_build_dir_matches_cartfile_resolved
end