Sha256: 8cadaf14379b51d9028b1a0731b3a91997c3a3d43dd113f174da8cfec5aed701

Contents?: true

Size: 901 Bytes

Versions: 5

Compression:

Stored size: 901 Bytes

Contents

require 'thor'
require 'thor/group'
require 'rubotnik'

class Rubotnik::Generator < Thor::Group
  include Thor::Actions
  desc 'Generate a new filesystem structure'

  def self.source_root
    File.dirname(__FILE__) + '/../../templates'
  end

  def create_file_structure
   copy_file 'config.ru', 'config.ru'
   copy_file 'Gemfile', 'Gemfile'
   copy_file '.env', '.env'
   copy_file 'puma.rb', 'config/puma.rb'
   copy_file 'Procfile', 'Procfile'
   copy_file 'commands.rb', 'bot/commands/commands.rb'
   copy_file 'location.rb', 'bot/commands/location.rb'
   copy_file 'ui_examples.rb', 'bot/commands/ui_examples.rb'
   copy_file 'bot.rb', 'bot/bot.rb'
   copy_file 'profile.rb', 'bot/profile.rb'
   copy_file '.gitignore', '.gitignore'
  end

  #
  # def create_git_files
  #   copy_file 'gitignore', '.gitignore'
  #   create_file 'images/.gitkeep'
  #   create_file 'text/.gitkeep'
  # end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rubotnik-0.2.3 lib/rubotnik/generator.rb
rubotnik-0.2.2 lib/rubotnik/generator.rb
rubotnik-0.2.1 lib/rubotnik/generator.rb
rubotnik-0.2.0 lib/rubotnik/generator.rb
rubotnik-0.1.1 lib/rubotnik/generator.rb