Class: Thor

Inherits:
Object
  • Object
show all
Defined in:
lib/metafusion/thor/core.rb

Instance Method Summary collapse

Instance Method Details

#gemObject



20
21
22
23
24
25
# File 'lib/metafusion/thor/core.rb', line 20

def gem
  path = project_name + ".gemspec"
  gemspec = eval(File.read(path))
  builder = Gem::Builder.new(gemspec)
  builder.build
end

#project_nameObject



15
16
17
# File 'lib/metafusion/thor/core.rb', line 15

def project_name
  raise ::Metafusion::Thor::Core::ThorUndefinedProjectName, "Please define a project_name methods in your Thor subclass that returns the name of your project"
end