Class: Redcuine::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/redcuine/base.rb

Direct Known Subclasses

Issue

Class Method Summary collapse

Class Method Details

.runObject



3
4
5
6
7
8
9
10
11
12
13
14
# File 'lib/redcuine/base.rb', line 3

def self.run
  if res = check_args
    Resource::Base.setup do
      self.site = CONFIG["site"]
      if CONFIG["user"] && CONFIG["password"]
        self.user = CONFIG["user"]
        self.password = CONFIG["password"]
      end
    end
  end
  return res
end