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
Returns a new instance of Xcasserts.
45 46 47 48 |
# File 'lib/pindo/command/utils/xcassets.rb', line 45 def initialize(argv) super(argv) @additional_args = argv.remainder! end |
Class Method Details
.options ⇒ Object
39 40 41 42 43 |
# File 'lib/pindo/command/utils/xcassets.rb', line 39 def self. [ ].concat(super) end |
Instance Method Details
#run ⇒ Object
54 55 56 57 58 59 |
# File 'lib/pindo/command/utils/xcassets.rb', line 54 def run current_dir = Dir.pwd; command = 'sh ' + File.join(File.('./', __dir__), 'xcassets.sh') + " #{current_dir}" system command end |
#validate! ⇒ Object
50 51 52 |
# File 'lib/pindo/command/utils/xcassets.rb', line 50 def validate! super end |