Class: Pod::Command::MPAAS::Version
- Inherits:
-
Pod::Command::MPAAS
- Object
- Pod::Command
- Pod::Command::MPAAS
- Pod::Command::MPAAS::Version
- Defined in:
- lib/cocoapods-mPaaS/command/mpaas/version.rb
Instance Method Summary collapse
-
#initialize(argv) ⇒ Version
constructor
A new instance of Version.
- #run ⇒ Object
Constructor Details
#initialize(argv) ⇒ Version
Returns a new instance of Version.
11 12 13 14 |
# File 'lib/cocoapods-mPaaS/command/mpaas/version.rb', line 11 def initialize(argv) @plugin = argv.flag?("plugin") super end |
Instance Method Details
#run ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/cocoapods-mPaaS/command/mpaas/version.rb', line 16 def run if @plugin LogTools.p_green CocoapodsMpaas::VERSION_DEV else project_dir = Dir::pwd podfile_path = File.join(project_dir, "Podfile") mPaaSPodfile = MPaaSPodfile.new mPaaSPodfile.run(podfile_path) LogTools.p_green "#{mPaaSPodfile.mPaaSBaseline}.#{mPaaSPodfile.mPaaSVersionCode}" end end |