Class: Utopia::Command::Server::Create
- Inherits:
-
Samovar::Command
- Object
- Samovar::Command
- Utopia::Command::Server::Create
- Defined in:
- lib/utopia/command/server.rb
Overview
Create a server.
Instance Method Summary collapse
Instance Method Details
#invoke(parent) ⇒ Object
35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/utopia/command/server.rb', line 35 def invoke(parent) destination_root = parent.root FileUtils.mkdir_p File.join(destination_root, "public") Update.new.invoke(parent) # Print out helpful git remote add message: hostname = `hostname`.chomp puts "Now add the git remote to your local repository:\n\tgit remote add production ssh://#{hostname}#{destination_root}" puts "Then push to it:\n\tgit push --set-upstream production master" end |