Class: Pindo::Command::Utils::Xcasserts
- Inherits:
-
Pindo::Command::Utils
- Object
- Pindo::Command
- Pindo::Command::Utils
- Pindo::Command::Utils::Xcasserts
- Defined in:
- lib/pindo/command/utils/xcassets.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(argv) ⇒ Xcasserts
constructor
A new instance of Xcasserts.
- #run ⇒ Object
- #validate! ⇒ Object
Constructor Details
#initialize(argv) ⇒ Xcasserts
27 28 29 30 |
# File 'lib/pindo/command/utils/xcassets.rb', line 27 def initialize(argv) super(argv) @additional_args = argv.remainder! end |
Class Method Details
.options ⇒ Object
21 22 23 24 25 |
# File 'lib/pindo/command/utils/xcassets.rb', line 21 def self. [ ].concat(super) end |
Instance Method Details
#run ⇒ Object
36 37 38 39 40 41 |
# File 'lib/pindo/command/utils/xcassets.rb', line 36 def run current_dir = Dir.pwd; command = 'sh ' + File.join(File.('./', __dir__), 'xcassets.sh') + " #{current_dir}" system command end |
#validate! ⇒ Object
32 33 34 |
# File 'lib/pindo/command/utils/xcassets.rb', line 32 def validate! super end |