Sha256: be1434eaef249487e3d09b6b85c8311e0e18448d2c167a37b7d9a3caef713163

Contents?: true

Size: 564 Bytes

Versions: 3

Compression:

Stored size: 564 Bytes

Contents

require 'thor/group'
require 'pathname'

module Redmine::Cli::Generators
  class Install < Thor::Group
    include Thor::Actions

    def self.source_root
      File.dirname(__FILE__)
    end

    argument :url,          :type => :string
    argument :username,     :type => :string
    argument :password,     :type => :string
    argument :list_fields,  :type => :array
    class_option :test,  :type => :boolean
    def copy_configuration_file
      self.destination_root = File.expand_path("~") unless options.test
      template(".redmine")
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
redmine-cli-0.1.6 lib/redmine-cli/generators/install.rb
redmine-cli-0.1.5 lib/redmine-cli/generators/install.rb
redmine-cli-0.1.4 lib/redmine-cli/generators/install.rb