Class: VagrantCloner::Cloners::TestCloner
Instance Attribute Summary collapse
Attributes inherited from BaseCloner
#enabled, #env, #machine, #options, #run_order
Instance Method Summary
collapse
Methods inherited from BaseCloner
#enabled?, #scp, #ssh, #vm
Instance Attribute Details
#foo ⇒ Object
Returns the value of attribute foo.
4
5
6
|
# File 'lib/vagrant-cloner/cloners/testcloner.rb', line 4
def foo
@foo
end
|
Instance Method Details
#call ⇒ Object
17
18
19
|
# File 'lib/vagrant-cloner/cloners/testcloner.rb', line 17
def call
info "Foo is #{foo}"
end
|
#name ⇒ Object
6
7
8
|
# File 'lib/vagrant-cloner/cloners/testcloner.rb', line 6
def name
"testcloner"
end
|
#validate(machine, errors) ⇒ Object
10
11
12
13
14
15
|
# File 'lib/vagrant-cloner/cloners/testcloner.rb', line 10
def validate(machine, errors)
failures = []
failures.push "Must specify a foo" unless foo
failures.merge(name.to_sym => failures) if failures.any?
end
|