Sha256: fe0e93e2c4c103cb1ba0dc578a4e53b2b7e020c34ed2083e8599d957e0a04c84
Contents?: true
Size: 1003 Bytes
Versions: 12
Compression:
Stored size: 1003 Bytes
Contents
module Roro class CLI < Thor method_option :env_vars, type: :hash, default: {}, desc: "Pass a list of environment variables like so: env:var", banner: "key1:value1 key2:value2" desc "rollon", "Generates files necessary to greenfield a new app within a dockerized rails container, along with a set of files necessary for continuous deployment using CircleCI" method_option :interactive, desc: "Set up your environment variables as you go." def rollon configurate if Dir['./*'].empty? raise Roro::Error.new("Oops -- Roro can't roll itself onto a Rails app if it doesn't exist. Please either change into a directory with a Rails app or generate a new one using '$ roro greenfield'.") end copy_base_files append_to_existing_files insert_into_file 'Gemfile', "gem 'sshkit'\n\n", before: "group :development, :test do" insert_into_file 'Gemfile', "\n\tgem 'handsome_fencer-test'", after: "group :development, :test do" end end end
Version data entries
12 entries across 12 versions & 1 rubygems