Sha256: 75e2c35fc9879237e11c777ef6395e72cf6895603b2befb7791b8c79dbf9f4be

Contents?: true

Size: 782 Bytes

Versions: 5

Compression:

Stored size: 782 Bytes

Contents

module HandsomeFencer
  module CircleCI
    class CLI < Thor

      desc "install", "This will generate a .circleci directory in your project root, along with a set of files for continuous deployments using docker and CircleCI"

      def install
        directory "circleci", "./.circleci", recursive: true
        directory 'lib/', 'lib', recursive: true
        copy_file "docker-compose.yml", "docker-compose.yml"
        copy_file "Gemfile", "Gemfile"
        copy_file "Gemfile.lock", "Gemfile.lock"
        copy_file "config/database.yml", "config/database.yml"
        create_file '.gitignore' unless File.exist? '.gitignore'
        append_to_file '.gitignore', "\n.circleci/**/*.env"
        append_to_file '.gitignore', "\n.circleci/**/*.key"
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
handsome_fencer-circle_c_i-0.1.23 lib/handsome_fencer/circle_c_i/cli/install.rb
handsome_fencer-circle_c_i-0.1.22 lib/handsome_fencer/circle_c_i/cli/install.rb
handsome_fencer-circle_c_i-0.1.21 lib/handsome_fencer/circle_c_i/cli/install.rb
handsome_fencer-circle_c_i-0.1.20 lib/handsome_fencer/circle_c_i/cli/install.rb
handsome_fencer-circle_c_i-0.1.19 lib/handsome_fencer/circle_c_i/cli/install.rb