Sha256: 4d4766e366b2e2046c9393414b6754d7c6e86c982b4aed4325df33bb88c26d8d

Contents?: true

Size: 518 Bytes

Versions: 1

Compression:

Stored size: 518 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 "gems.rb"
        copy_file "Procfile"
        copy_file "config/boppers.rb"
      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.1 lib/boppers/generator/app.rb