Sha256: b0c7c0d03468bb05744ba31fbc81f462eb16a7918e016db2a63f148b9e2ac677

Contents?: true

Size: 856 Bytes

Versions: 3

Compression:

Stored size: 856 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" unless File.exist? "Gemfile"
        copy_file "Gemfile.lock", "Gemfile.lock" unless File.exist? "Gemfile.lock"
        copy_file "config/database.yml", "config/database.yml"
        copy_file "gitignore", ".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

3 entries across 3 versions & 1 rubygems

Version Path
handsome_fencer-circle_c_i-0.1.26 lib/handsome_fencer/circle_c_i/cli/install.rb
handsome_fencer-circle_c_i-0.1.25 lib/handsome_fencer/circle_c_i/cli/install.rb
handsome_fencer-circle_c_i-0.1.24 lib/handsome_fencer/circle_c_i/cli/install.rb