Module: Vagabond
- Defined in:
- lib/vagabond/spec.rb,
lib/vagabond/knife.rb,
lib/vagabond/errors.rb,
lib/vagabond/layout.rb,
lib/vagabond/server.rb,
lib/vagabond/helpers.rb,
lib/vagabond/kitchen.rb,
lib/vagabond/version.rb,
lib/vagabond/uploader.rb,
lib/vagabond/vagabond.rb,
lib/vagabond/constants.rb,
lib/vagabond/actions/up.rb,
lib/vagabond/actions/ssh.rb,
lib/vagabond/actions/init.rb,
lib/vagabond/actions/thaw.rb,
lib/vagabond/vagabondfile.rb,
lib/vagabond/actions/start.rb,
lib/vagabond/actions/create.rb,
lib/vagabond/actions/freeze.rb,
lib/vagabond/actions/status.rb,
lib/vagabond/uploader/knife.rb,
lib/vagabond/actions/cluster.rb,
lib/vagabond/actions/destroy.rb,
lib/vagabond/actions/rebuild.rb,
lib/vagabond/actions/provision.rb,
lib/vagabond/uploader/berkshelf.rb,
lib/vagabond/uploader/librarian.rb,
lib/vagabond/monkey/kitchen_config.rb,
lib/vagabond/internal_configuration.rb,
lib/vagabond/helpers/cheffile_loader.rb,
lib/vagabond/cookbooks/vagabond/libraries/vagabond.rb
Defined Under Namespace
Modules: Actions, Helpers, MonkeyPatch Classes: CheffileLoader, InternalConfiguration, Kitchen, Knife, Layout, Server, Spec, Uploader, Vagabond, VagabondError, Vagabondfile, Version
Constant Summary collapse
- VERSION =
Version.new('0.2.6', 'gutterpup')
- BASE_TEMPLATES =
File.readlines( File.join(File.dirname(__FILE__), 'cookbooks/vagabond/attributes/default.rb') ).map do |l| l.scan(%r{bases\]\[:([^\]]+)\]}).flatten.first end.compact.uniq
- COLORS =
Mash.new( :success => :green, :create => :green, :setup => :blue, :error => :red, :failed => :red, :verified => :yellow, :converged => :magenta, :destroyed => :red, :kitchen => [:cyan, :bold] )
Class Method Summary collapse
Class Method Details
.get_bytes(s) ⇒ Object
3 4 5 6 7 8 |
# File 'lib/vagabond/cookbooks/vagabond/libraries/vagabond.rb', line 3 def get_bytes(s) s = s.to_s indx = [nil, 'k', 'm', 'g'] power = indx.index(s.slice(-1, s.length).to_s.downcase).to_i * 10 (2**power) * s.to_i end |