Sha256: 127ac9a07fabfb6db56bdd8d6caac5355ef5a44fd1cf5413b6596d9d5664c736

Contents?: true

Size: 603 Bytes

Versions: 1

Compression:

Stored size: 603 Bytes

Contents

module Blazing
  module CLI
    class Create < Thor::Group

      desc 'create a blazing config file'

      include Thor::Actions

      def self.source_root
        File.dirname(__FILE__)
      end

      def create_blazing_dir
        empty_directory Blazing::DIRECTORY
      end

      def create_config_file
        template 'templates/blazing.tt', Blazing::CONFIGURATION_FILE
        say "Blazing config file has been created in #{Blazing::CONFIGURATION_FILE} with a default remote."
        say "Check the config and then setup your remote with blazing setup REMOTE"
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
blazing-0.0.6 lib/blazing/cli/create.rb