Class: Pod::Command::GenerateSegueHandlers

Inherits:
Pod::Command show all
Defined in:
lib/pod/command/generate_segue_handlers.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(argv) ⇒ GenerateSegueHandlers

Returns a new instance of GenerateSegueHandlers.



14
15
16
17
18
19
20
# File 'lib/pod/command/generate_segue_handlers.rb', line 14

def initialize(argv)
  unless argv.empty?
    @project_dir = argv.shift_argument
    @project_name = argv.shift_argument
  end
  super
end

Class Method Details

.optionsObject



10
11
12
# File 'lib/pod/command/generate_segue_handlers.rb', line 10

def self.options
  []
end

Instance Method Details

#runObject



26
27
28
# File 'lib/pod/command/generate_segue_handlers.rb', line 26

def run
  puts `PROJECT_DIR=#{@project_dir} PROJECT_NAME=#{@project_name} segue-handler-generator-build`
end

#validate!Object



22
23
24
# File 'lib/pod/command/generate_segue_handlers.rb', line 22

def validate!
  super
end