class Juwelier::Commands::ValidateGemspec
Attributes
gemspec_helper[RW]
output[RW]
Public Class Methods
build_for(juwelier)
click to toggle source
# File lib/juwelier/commands/validate_gemspec.rb, line 20 def self.build_for(juwelier) command = new command.gemspec_helper = juwelier.gemspec_helper command.output = juwelier.output command end
new()
click to toggle source
# File lib/juwelier/commands/validate_gemspec.rb, line 6 def initialize self.output = $stdout end
Public Instance Methods
run()
click to toggle source
# File lib/juwelier/commands/validate_gemspec.rb, line 10 def run begin gemspec_helper.parse output.puts "#{gemspec_helper.path} is valid." rescue Exception => e output.puts "#{gemspec_helper.path} is invalid. See the backtrace for more details." raise end end