class Utopia::Command::Server::Create

Create a server.

Public Instance Methods

call() click to toggle source
# File lib/utopia/command/server.rb, line 37
def call
        destination_root = parent.root
        
        FileUtils.mkdir_p File.join(destination_root, "public")
        
        Update[parent: parent].call
        
        # 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