Sha256: cc3a9f8f4ca53ce1f7f8155efc3306f417da0c78e943521a03c7a5d5d1fb4e5b
Contents?: true
Size: 1.11 KB
Versions: 1
Compression:
Stored size: 1.11 KB
Contents
#!/usr/bin/env ruby require 'clearest' require 'thor' module CleaRESTCLI class Application < Thor desc "new <name> <dsn>", "Adds a new CleaREST application" def new(name,dsn) Clearest::ApplicationBuilder::new :project_name => name, :target_path => '.', :dsn => dsn end desc "show", "Display information on the current application" def show end end class Services < Thor desc "add <table>", "Adds the new service named <table> to the current application" def add(table) app = Clearest::Validators::Applications::check :path => '.' Clearest::ServiceBuilder::new :table_name => table, :dsn => app[:dsn], :project_name => app[:project_name], :target_path => '.' end desc "remove <name>", "remove service <name> of the current application" def remove(name) end end class CleaREST < Thor desc "application SUBCOMMAND ...ARGS", "manage CleaREST application" subcommand "application", Application desc "services SUBCOMMAND ...ARGS", "manage services in application" subcommand "services", Services end end CleaRESTCLI::CleaREST.start(ARGV)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
clearest-0.0.1a | bin/clearest |