Class: Bard::CLI::New
- Defined in:
- lib/bard/cli/new.rb
Instance Attribute Summary collapse
-
#project_name ⇒ Object
Returns the value of attribute project_name.
Instance Method Summary collapse
Methods inherited from Command
Instance Attribute Details
#project_name ⇒ Object
Returns the value of attribute project_name.
16 17 18 |
# File 'lib/bard/cli/new.rb', line 16 def project_name @project_name end |
Instance Method Details
#new(project_name) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/bard/cli/new.rb', line 6 def new project_name @project_name = project_name validate create_project push_to_github stage puts green("Project #{project_name} created!") puts "Please cd ../#{project_name}" end |