Class: Pindo::Command::Utils::Xcasserts
- Inherits:
-
Pindo::Command::Utils
- Object
- CLAide::Command
- Pindo::Command
- Pindo::Command::Utils
- Pindo::Command::Utils::Xcasserts
- 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
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(argv) ⇒ Xcasserts
constructor
A new instance of Xcasserts.
- #run ⇒ Object
- #validate! ⇒ Object
Methods inherited from Pindo::Command
command_name, #initialize_options, run, use_cache?
Methods included from Funlog::Mixin
Methods included from Pindoconfig::Mixin
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
.options ⇒ Object
49 50 51 52 53 |
# File 'lib/pindo/command/utils/xcassets.rb', line 49 def self. [ ].concat(super) end |
Instance Method Details
#run ⇒ Object
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.('./', __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 |