class Natstrap::CLI
Public Instance Methods
launch()
click to toggle source
# File lib/natstrap/cli.rb, line 31 def launch puts "Launching!" end
new(prj_name)
click to toggle source
# File lib/natstrap/cli.rb, line 6 def new prj_name # Init padrino Natstrap::Utils.create_padrino prj_name # enter into the dir FileUtils.cd prj_name, :verbose => Natstrap::DEV # Track all of our changes with git Natstrap::Utils.git_init Natstrap::Utils.git_commit "padrino init." # Install templates, update gems Natstrap::Utils.extend_padrino prj_name Natstrap::Utils.git_commit "padrino configured." # Move folders around the way I like them Natstrap::Utils.reorganize_public Natstrap::Utils.git_commit "public folder reorganized" # Download and extract bootstrap framework. Natstrap::Utils.add_bootstrap 'public' Natstrap::Utils.git_commit "bootstrapped" end
version()
click to toggle source
# File lib/natstrap/cli.rb, line 37 def version require 'natstrap/version' puts "Natstrap v#{Natstrap::VERSION}" end