Class: RailsSkeleton::Client
- Inherits:
-
Object
- Object
- RailsSkeleton::Client
- Defined in:
- lib/rails-skeleton/client.rb
Instance Method Summary collapse
-
#initialize(name, branch, repos = RailsSkeleton::DEFAULT_SKELETON_REPOSITORY) ⇒ Client
constructor
A new instance of Client.
- #lolcats ⇒ Object
Constructor Details
#initialize(name, branch, repos = RailsSkeleton::DEFAULT_SKELETON_REPOSITORY) ⇒ Client
Returns a new instance of Client.
5 6 7 8 9 10 11 |
# File 'lib/rails-skeleton/client.rb', line 5 def initialize(name, branch, repos = RailsSkeleton::DEFAULT_SKELETON_REPOSITORY) @name = name @app_name = @name.camelize @branch = branch @repository = repos @path = name end |
Instance Method Details
#lolcats ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/rails-skeleton/client.rb', line 13 def lolcats sanity_check clone rename bundler generate_secret copy_db_config regit puts "Successfully copied #{@repository/@branch} into #{@name.green}" end |