Sha256: d2749a775c2cdd75508f1ac0679b76a1b26f037dc01d06837ee9b36414ab78e6

Contents?: true

Size: 1.25 KB

Versions: 32

Compression:

Stored size: 1.25 KB

Contents

# encoding: utf-8
require 'rails/generators'

module MagicRecipes
  module Generators
    class GitCapGenerator < Rails::Generators::Base
      source_root File.expand_path("../templates", __FILE__)
      include Thor::Actions

      # => argument :git_name,       :type => :string, :banner => 'GitName',     :default => "git_name"
      # => argument :git_password,   :type => :string, :banner => 'GitPassword', :default => "git_password"
      # => def initialize(args, *options) #:nodoc:
      # =>   super
      # => end

      desc "Some visuals."
      def initial_desc
        puts('   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *')
        puts('   -   -   -   -   -   -   M A G I C - R E C I P E S : git-deploy-helper   -   -   -   -   -   -   -   -')
      end

      desc "copy git_cap file."
      def create_git_cap_files
        template "git_cap.tt", "#{ Rails.root }/git_cap"
      end

      desc "More visuals."
      def end_desc
        puts("   -   -   -   -   -   -    Usage:  $ git_cap [git_name] [git_password]    -   -   -   -   -   -   -   -")
        puts('   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *')
      end

    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
magic_recipes-0.1.17 lib/generators/magic_recipes/git_cap_generator.rb
magic_recipes-0.1.16 lib/generators/magic_recipes/git_cap_generator.rb
magic_recipes-0.1.15 lib/generators/magic_recipes/git_cap_generator.rb
magic_recipes-0.1.14 lib/generators/magic_recipes/git_cap_generator.rb
magic_recipes-0.1.13 lib/generators/magic_recipes/git_cap_generator.rb
magic_recipes-0.1.11 lib/generators/magic_recipes/git_cap_generator.rb
magic_recipes-0.1.10 lib/generators/magic_recipes/git_cap_generator.rb
magic_recipes-0.1.9 lib/generators/magic_recipes/git_cap_generator.rb
magic_recipes-0.1.8 lib/generators/magic_recipes/git_cap_generator.rb
magic_recipes-0.1.7 lib/generators/magic_recipes/git_cap_generator.rb
magic_recipes-0.1.6 lib/generators/magic_recipes/git_cap_generator.rb
magic_recipes-0.1.5 lib/generators/magic_recipes/git_cap_generator.rb
magic_recipes-0.1.4 lib/generators/magic_recipes/git_cap_generator.rb
magic_recipes-0.1.3 lib/generators/magic_recipes/git_cap_generator.rb
magic_recipes-0.1.2 lib/generators/magic_recipes/git_cap_generator.rb
magic_recipes-0.1.1 lib/generators/magic_recipes/git_cap_generator.rb
magic_recipes-0.1.0 lib/generators/magic_recipes/git_cap_generator.rb
magic_recipes-0.0.29 lib/generators/magic_recipes/git_cap_generator.rb
magic_recipes-0.0.28 lib/generators/magic_recipes/git_cap_generator.rb
magic_recipes-0.0.27 lib/generators/magic_recipes/git_cap_generator.rb