Class: TicketPunch::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/ticket_punch/install/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_version_fileObject



11
12
13
14
15
16
# File 'lib/generators/ticket_punch/install/install_generator.rb', line 11

def copy_version_file
  version = options[:version]
  @major, @minor, @patch = *(version.split('.'))

  template 'version.yml', 'config/version.yml'
end