Sha256: 3b46cab073f144db6d62bd77c1497ae3f77c0d74ddf03362fab219d7a6049fb0
Contents?: true
Size: 971 Bytes
Versions: 1
Compression:
Stored size: 971 Bytes
Contents
require 'thor' require 'railman' module Railman class CLI < Thor include Thor::Actions attr_accessor :app_name # this is where the thor generator templates are found def self.source_root File.expand_path('../../../templates', __FILE__) end desc "new APPNAME", "Create new rails application named APPNAME" def new(app_name) say "Create a new rails application named: #{app_name}", :green @app_name = app_name @class_name = Thor::Util.camel_case(app_name) directory "rails_app", app_name Dir.chdir app_name do # create_local_git_repository run "bundle install" # create_remote_git_repository(@repository) end say "The rails application '#{app_name}' was successfully created.", :green end desc "update APPNAME", "Update the rails upplication named APPNAME" def update(app_name) puts "TODO update the rails application: #{app_name}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
railman-0.0.2 | lib/railman/cli.rb |