Sha256: 38ea1bd4d328f33301a74fefbe2b8ba8c44d165f7db345752cf9f5b356560ae4

Contents?: true

Size: 562 Bytes

Versions: 9

Compression:

Stored size: 562 Bytes

Contents

module Roro
  
  class CLI < Thor
    
    no_commands do
      
      def copy_dockerignore 
        copy_file 'base/.dockerignore', '.dockerignore'
      end 
      
      def copy_host_example 
        copy_file 'base/livereload/hosts.example', 'hosts.example' 
      end

      def copy_docker_compose 
        template "base/docker-compose.yml", 'docker-compose.yml', @env_hash
      end
      
      def copy_database_yml_pg 
        copy_file "base/config/database.pg.yml", 'config/database.yml', force: @env_hash[:use_force]
      end
    end
  end 
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
roro-0.3.17 lib/roro/cli/base/base_files.rb
roro-0.3.16 lib/roro/cli/base/base_files.rb
roro-0.3.14 lib/roro/cli/base/base_files.rb
roro-0.3.13 lib/roro/cli/base/base_files.rb
roro-0.3.12 lib/roro/cli/base/base_files.rb
roro-0.3.9 lib/roro/cli/base/base_files.rb
roro-0.3.8 lib/roro/cli/base/base_files.rb
roro-0.3.7 lib/roro/cli/base/base_files.rb
roro-0.3.6 lib/roro/cli/base/base_files.rb