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
options, parse, report_error, run
Methods included from Pod::Config::Mixin
Constructor Details
#initialize(argv) ⇒ Podfile
Returns a new instance of Podfile.
45 46 47 48 |
# File 'lib/cocoapods/command/inter_process_communication.rb', line 45 def initialize(argv) @path = argv.shift_argument super end |
Instance Method Details
#run ⇒ Object
55 56 57 58 |
# File 'lib/cocoapods/command/inter_process_communication.rb', line 55 def run podfile = Pod::Podfile.from_file(@path) output_pipe.puts podfile.to_yaml end |
#validate! ⇒ Object
50 51 52 53 |
# File 'lib/cocoapods/command/inter_process_communication.rb', line 50 def validate! super help! "A Podfile path is required." unless @path end |