Class: Pod::Command::Swordfish
- Inherits:
-
Pod::Command
- Object
- Pod::Command
- Pod::Command::Swordfish
- Includes:
- Ocean::SourcesHelper, Ocean::SpecFilesHelper
- Defined in:
- lib/swordfish/command/auto.rb,
lib/swordfish/command/config.rb,
lib/swordfish/command/archive.rb,
lib/swordfish/command/spec/push.rb,
lib/swordfish/command/swordfish.rb,
lib/swordfish/command/repo/update.rb,
lib/swordfish/command/spec/create.rb
Defined Under Namespace
Classes: Archive, Auto, Config, Repo, Spec
Instance Method Summary collapse
-
#initialize(argv) ⇒ Swordfish
constructor
A new instance of Swordfish.
- #validate! ⇒ Object
Methods included from Ocean::SpecFilesHelper
#binary_spec, #binary_spec_files, #binary_template_spec, #binary_template_spec_file, #binary_template_spec_files, #clear_binary_spec_file_if_needed, #code_spec, #code_spec_files, #create_binary_spec_file, #find_spec_file, #spec_files
Methods included from Ocean::SourcesHelper
#binary_source, #code_source, #sources_manager, #sources_option, #valid_sources
Constructor Details
#initialize(argv) ⇒ Swordfish
Returns a new instance of Swordfish.
26 27 28 29 30 31 |
# File 'lib/swordfish/command/swordfish.rb', line 26 def initialize(argv) require 'swordfish/native/resolver' @help = argv.flag?('help') super end |
Instance Method Details
#validate! ⇒ Object
33 34 35 36 37 38 |
# File 'lib/swordfish/command/swordfish.rb', line 33 def validate! super # 这里由于 --help 是在 validate! 方法中提取的,会导致 --help 失效 # pod lib create 也有这个问题 if @help end |