Sha256: dd3fcecf5533e37c217196cd3503bf9221f455c97bbcba51efe9449a2f86a261
Contents?: true
Size: 640 Bytes
Versions: 6
Compression:
Stored size: 640 Bytes
Contents
module Stan class Cli < Thor desc 'version', 'display the stan version' def version puts('Stan version ' + Stan::VERSION.to_s) end desc 'compress DIRECTORY', 'compress given directory' def compress(dir) c = Stan::Compressor.new(dir) c.compress end desc 'server', 'start the server to receive and serve pages' def server Stan::Server.run! end desc 'deploy DIRECTORY NAME', 'deploys given directory to stan server' def deploy(dir, name) c = Stan::Compressor.new(dir) c.compress file = c.output Stan::Deployer.deploy(file, name) end end end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
stan-0.2.4 | lib/stan/cli.rb |
stan-0.2.3 | lib/stan/cli.rb |
stan-0.2.2 | lib/stan/cli.rb |
stan-0.2.1 | lib/stan/cli.rb |
stan-0.2.0 | lib/stan/cli.rb |
stan-0.1.0 | lib/stan/cli.rb |