Method: CouchRest::Commands::Push.run
- Defined in:
- lib/couchrest/commands/push.rb
.run(options) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/couchrest/commands/push.rb', line 7 def self.run() directory = [:directory] database = [:trailing_args].first fm = CouchRest::FileManager.new(database) fm.loud = [:loud] if [:loud] puts "Pushing views from directory #{directory} to database #{fm.db}" end fm.push_views(directory) end |