Class: XcodeUtils::Command::Carthage
- Inherits:
-
XcodeUtils::Command
- Object
- CLAide::Command
- XcodeUtils::Command
- XcodeUtils::Command::Carthage
- Defined in:
- lib/xcutils/carthage.rb
Direct Known Subclasses
Defined Under Namespace
Classes: Clean
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(argv) ⇒ Carthage
constructor
A new instance of Carthage.
- #run ⇒ Object
- #validate! ⇒ Object
Constructor Details
#initialize(argv) ⇒ Carthage
Returns a new instance of Carthage.
17 18 19 20 |
# File 'lib/xcutils/carthage.rb', line 17 def initialize(argv) super @additional_args = argv.remainder! end |
Class Method Details
.install_bash_file_path ⇒ Object
9 10 11 |
# File 'lib/xcutils/carthage.rb', line 9 def self.install_bash_file_path File.('../../../sh/install_carthage.sh', __FILE__) end |
.options ⇒ Object
13 14 15 |
# File 'lib/xcutils/carthage.rb', line 13 def self. [] end |
Instance Method Details
#run ⇒ Object
25 26 27 28 29 30 |
# File 'lib/xcutils/carthage.rb', line 25 def run path = File.('../../../sh/install_carthage.sh', __FILE__) system("bash #{Carthage::install_bash_file_path}") system("carthage #{@additional_args.join(" ")}") XcodeUtils::Carthage::XcodeConfig.new.run end |
#validate! ⇒ Object
22 23 |
# File 'lib/xcutils/carthage.rb', line 22 def validate! end |