Sha256: bad201dc6864f8f86f01b51e67dbd893c5489e9973fe064bb05c281704b79863

Contents?: true

Size: 574 Bytes

Versions: 1

Compression:

Stored size: 574 Bytes

Contents

# frozen_string_literal: true

module Boppers
  module Generator
    class App < Thor::Group
      include Thor::Actions

      desc "Generate a new app structure"

      def self.source_root
        File.join(__dir__, "app")
      end

      def copy_files
        copy_file "Gemfile"
        copy_file "Procfile"
        copy_file "config/boppers.rb"
        copy_file ".gitignore"
        copy_file ".env"
      end

      def run_commands
        inside destination_root do
          run "git init"
          run "bundle install"
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
boppers-0.0.11 lib/boppers/generator/app.rb