Class: XcodeUtils::Command::Carthage

Inherits:
XcodeUtils::Command show all
Defined in:
lib/xcutils/carthage.rb

Direct Known Subclasses

Clean

Defined Under Namespace

Classes: Clean

Class Method Summary collapse

Instance Method Summary collapse

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_pathObject



9
10
11
# File 'lib/xcutils/carthage.rb', line 9

def self.install_bash_file_path
  File.expand_path('../../../sh/install_carthage.sh', __FILE__)
end

.optionsObject



13
14
15
# File 'lib/xcutils/carthage.rb', line 13

def self.options
  []
end

Instance Method Details

#runObject



25
26
27
28
29
30
# File 'lib/xcutils/carthage.rb', line 25

def run
  path = File.expand_path('../../../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