Class: GGem::CLI::BuildCommand

Inherits:
Object
  • Object
show all
Includes:
GemspecCommand
Defined in:
lib/ggem/cli/commands.rb

Instance Method Summary collapse

Instance Method Details

#helpObject



194
195
196
197
198
199
# File 'lib/ggem/cli/commands.rb', line 194

def help
  "Usage: ggem build [options]\n\n" \
  "Options: #{@clirb}\n" \
  "Description:\n" \
  "  #{summary}"
end

#run(argv, *args) ⇒ Object



182
183
184
185
186
187
# File 'lib/ggem/cli/commands.rb', line 182

def run(argv, *args)
  super
  notify("#{@spec.name} #{@spec.version} built to #{@spec.gem_file}") do
    @spec.run_build_cmd
  end
end

#summaryObject



189
190
191
192
# File 'lib/ggem/cli/commands.rb', line 189

def summary
  "Build #{@spec.gem_file_name} into the " \
  "#{GGem::Gemspec::BUILD_TO_DIRNAME} directory"
end