class Funkce::Generators::Function
Public Class Methods
source_root()
click to toggle source
# File lib/funkce/generators/function.rb, line 14 def self.source_root "#{File.dirname(__FILE__)}/function" end
Public Instance Methods
create_app_file()
click to toggle source
# File lib/funkce/generators/function.rb, line 24 def create_app_file template('app.tt', "#{group}/#{name}/app.rb") end
create_gemfile()
click to toggle source
# File lib/funkce/generators/function.rb, line 28 def create_gemfile template('Gemfile.tt', "#{group}/#{name}/Gemfile") end
create_group()
click to toggle source
# File lib/funkce/generators/function.rb, line 18 def create_group empty_directory(group.to_s) empty_directory("#{group}/#{name}") empty_directory("#{group}/#{name}/lib") end
create_lib_file()
click to toggle source
# File lib/funkce/generators/function.rb, line 32 def create_lib_file template('lib.tt', "#{group}/#{name}/lib/#{name}.rb") end