Module: Hosum

Defined in:
lib/hosum.rb,
lib/hosum/dsl.rb,
lib/hosum/ips.rb,
lib/hosum/group.rb,
lib/hosum/hosts.rb,
lib/hosum/subject.rb,
lib/hosum/container.rb

Defined Under Namespace

Classes: Container, Dsl, DslException, Group, Hosts, Ips, Subject

Constant Summary collapse

VERSION =
File.read(File.expand_path("../../VERSION", __FILE__)).chomp

Class Method Summary collapse

Class Method Details

.dsl(options = {}, &block) ⇒ Object



14
15
16
# File 'lib/hosum.rb', line 14

def self.dsl(options = {}, &block)
  Dsl.new(options, &block)
end

.dsl_by_file(path, options = {}) ⇒ Object



18
19
20
21
22
# File 'lib/hosum.rb', line 18

def self.dsl_by_file(path, options = {})
  self.dsl(options) do
    instance_eval(File.read(path), path, 1)
  end
end