Class: Hazetug
- Inherits:
-
Object
show all
- Defined in:
- lib/hazetug/ui.rb,
lib/hazetug/cli.rb,
lib/hazetug/tug.rb,
lib/hazetug/haze.rb,
lib/hazetug/task.rb,
lib/hazetug/config.rb,
lib/hazetug/compute.rb,
lib/hazetug/hazetug.rb,
lib/hazetug/net_ssh.rb,
lib/hazetug/version.rb,
lib/hazetug/tug/solo.rb,
lib/hazetug/tug/knife.rb,
lib/hazetug/cli/action.rb,
lib/hazetug/haze/linode.rb,
lib/hazetug/cli/bootstrap.rb,
lib/hazetug/haze/cloud_server.rb,
lib/hazetug/haze/digital_ocean.rb,
lib/hazetug/tug/knife_base.rb
Defined Under Namespace
Modules: NetSSH
Classes: CLI, Compute, Config, Exception, Haze, Task, Tug, UI
Constant Summary
collapse
- VERSION =
"0.1.7"
Class Method Summary
collapse
Class Method Details
.camel_case_name(string_or_symbol) ⇒ Object
12
13
14
|
# File 'lib/hazetug/hazetug.rb', line 12
def camel_case_name(string_or_symbol)
string_or_symbol.to_s.split('_').map(&:capitalize).join
end
|
.leaf_klass_name(klass) ⇒ Object
16
17
18
19
20
21
22
|
# File 'lib/hazetug/hazetug.rb', line 16
def leaf_klass_name(klass)
if klass.is_a? String
klass.split('::').last
else
klass.name.split('::').last
end
end
|