Class: Pindo::Command::Utils::Xcasserts

Inherits:
Pindo::Command::Utils show all
Defined in:
lib/pindo/command/utils/xcassets.rb

Constant Summary

Constants inherited from Pindo::Command

DEFAULT_OPTIONS, DEFAULT_ROOT_OPTIONS

Instance Attribute Summary

Attributes inherited from Pindo::Command

#args_help_flag

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Pindo::Command

command_name, #initialize_options, run, use_cache?

Methods included from Funlog::Mixin

#pindo_log_instance

Methods included from Pindoconfig::Mixin

#pindo_single_config

Constructor Details

#initialize(argv) ⇒ Xcasserts

Returns a new instance of Xcasserts.



55
56
57
58
# File 'lib/pindo/command/utils/xcassets.rb', line 55

def initialize(argv)
    super(argv)
    @additional_args = argv.remainder!
end

Class Method Details

.optionsObject



49
50
51
52
53
# File 'lib/pindo/command/utils/xcassets.rb', line 49

def self.options
  [
        
  ].concat(super)
end

Instance Method Details

#runObject



64
65
66
67
68
69
# File 'lib/pindo/command/utils/xcassets.rb', line 64

def run
    current_dir = Dir.pwd;

    command = 'sh ' + File.join(File.expand_path('./', __dir__), 'xcassets.sh') + " #{current_dir}"
    system command
end

#validate!Object



60
61
62
# File 'lib/pindo/command/utils/xcassets.rb', line 60

def validate!
    super
end