Sha256: 808c6054b956431532751e71be2eef523523b428e0ccba1a487a44dd89e59749

Contents?: true

Size: 654 Bytes

Versions: 1

Compression:

Stored size: 654 Bytes

Contents

module Blazing
  module CLI
    class Create < Thor::Group

      desc 'create a blazing config file'

      include Thor::Actions

      argument :repository
      argument :target

      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.5 lib/blazing/cli/create.rb