Class: Pod::Command::IPC::Podfile
- Inherits:
-
Pod::Command::IPC
- Object
- CLAide::Command
- Pod::Command
- Pod::Command::IPC
- Pod::Command::IPC::Podfile
- Defined in:
- lib/cocoapods/command/inter_process_communication.rb
Overview
———————————————————————–#
Instance Method Summary collapse
-
#initialize(argv) ⇒ Podfile
constructor
A new instance of Podfile.
- #run ⇒ Object
- #validate! ⇒ Object
Methods inherited from Pod::Command::IPC
Methods inherited from Pod::Command
#ensure_master_spec_repo_exists!, options, report_error, run
Methods included from Pod::Config::Mixin
Constructor Details
#initialize(argv) ⇒ Podfile
Returns a new instance of Podfile.
46 47 48 49 |
# File 'lib/cocoapods/command/inter_process_communication.rb', line 46 def initialize(argv) @path = argv.shift_argument super end |
Instance Method Details
#run ⇒ Object
56 57 58 59 60 |
# File 'lib/cocoapods/command/inter_process_communication.rb', line 56 def run require 'yaml' podfile = Pod::Podfile.from_file(@path) output_pipe.puts podfile.to_yaml end |
#validate! ⇒ Object
51 52 53 54 |
# File 'lib/cocoapods/command/inter_process_communication.rb', line 51 def validate! super help! 'A Podfile path is required.' unless @path end |