Sha256: 65ea34324d137c099d737d8b60a2d73a0854dedaf66d03cd6c2350c4ef5ec784
Contents?: true
Size: 658 Bytes
Versions: 1
Compression:
Stored size: 658 Bytes
Contents
require "thor/group" module Figaro class CLI < Thor class Install < Thor::Group include Thor::Actions class_option "path", aliases: ["-p"], default: "config/application.yml", desc: "Specify a configuration file path" def self.source_root File.expand_path("../install", __FILE__) end def create_configuration copy_file("application.yml", options[:path]) end def ignore_configuration if File.exist?(".gitignore") append_to_file(".gitignore", <<-EOF) # Ignore application configuration /#{options[:path]} EOF end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
daqing_figaro-1.2.1 | lib/figaro/cli/install.rb |