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(options)
  directory = options[:directory]
  database  = options[:trailing_args].first
  
  fm      = CouchRest::FileManager.new(database)
  fm.loud = options[:loud]

  if options[:loud]
    puts "Pushing views from directory #{directory} to database #{fm.db}"
  end

  fm.push_views(directory)
end