Class: MagicRecipes::Generators::GitCapGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- MagicRecipes::Generators::GitCapGenerator
- Includes:
- Thor::Actions
- Defined in:
- lib/generators/magic_recipes/git_cap_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_git_cap_files ⇒ Object
23 24 25 |
# File 'lib/generators/magic_recipes/git_cap_generator.rb', line 23 def create_git_cap_files template "git_cap.tt", "#{ Rails.root }/git_cap" end |
#end_desc ⇒ Object
28 29 30 31 |
# File 'lib/generators/magic_recipes/git_cap_generator.rb', line 28 def end_desc puts(" - - - - - - Usage: $ git_cap [git_name] [git_password] - - - - - - - -") puts(' * * * * * * * * * * * * * * * * * * * * * * * * * *') end |
#initial_desc ⇒ Object
17 18 19 20 |
# File 'lib/generators/magic_recipes/git_cap_generator.rb', line 17 def initial_desc puts(' * * * * * * * * * * * * * * * * * * * * * * * * * *') puts(' - - - - - - M A G I C - R E C I P E S : git-deploy-helper - - - - - - - -') end |