class Pod::Command::IPC::Spec
Public Class Methods
new(argv)
click to toggle source
Calls superclass method
Pod::Command::new
# File lib/cocoapods/command/ipc/spec.rb, line 11 def initialize(argv) @path = argv.shift_argument super end
Public Instance Methods
run()
click to toggle source
# File lib/cocoapods/command/ipc/spec.rb, line 21 def run require 'json' spec = Specification.from_file(@path) output_pipe.puts(spec.to_pretty_json) end
validate!()
click to toggle source
Calls superclass method
# File lib/cocoapods/command/ipc/spec.rb, line 16 def validate! super help! 'A specification path is required.' unless @path end