Sha256: 6e90b19f1f264b1ca9fcd4b0b9adaec7bcb4d7c4a2cffe2b6f60f5900f1d94c0
Contents?: true
Size: 645 Bytes
Versions: 1
Compression:
Stored size: 645 Bytes
Contents
module ClassicCMS class Cli def self.command(arguments) case arguments[0] when 'new' if arguments[1] == nil puts 'hmm you are using the command wrong: classicCMS new [app name]' elsif File::directory? arguments[1] puts 'hmm I think that app already exists!' else app_name = arguments[1] FileUtils.cp_r File.dirname(__FILE__), Dir.pwd + "/#{app_name}" puts "#{app_name} created!" end when 'server' puts 'going to start server...' else puts "you are so smart! I don't know what you mean!" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
classicCMS-0.2.0 | lib/classiccms/cli.rb |