Module: KnifeSolo

Defined in:
lib/knife-solo.rb,
lib/knife-solo/info.rb,
lib/knife-solo/tools.rb,
lib/knife-solo/berkshelf.rb,
lib/knife-solo/gitignore.rb,
lib/knife-solo/librarian.rb,
lib/knife-solo/bootstraps.rb,
lib/knife-solo/ssh_command.rb,
lib/knife-solo/ssh_connection.rb,
lib/knife-solo/cookbook_manager.rb,
lib/knife-solo/deprecated_command.rb,
lib/knife-solo/node_config_command.rb,
lib/knife-solo/cookbook_manager_selector.rb

Defined Under Namespace

Modules: Bootstraps, CookbookManager, DeprecatedCommand, NodeConfigCommand, SshCommand, Tools Classes: Berkshelf, CookbookManagerSelector, Gitignore, Librarian, SshConnection

Class Method Summary collapse

Class Method Details

.post_install_messageObject



6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/knife-solo/info.rb', line 6

def self.post_install_message
  <<-TXT.gsub(/^ {6}/, '').strip
    Thanks for installing knife-solo!

    If you run into any issues please let us know at:
      https://github.com/matschaffer/knife-solo/issues

    If you are upgrading knife-solo please uninstall any old versions by
    running `gem clean knife-solo` to avoid any errors.

    See http://bit.ly/CHEF-3255 for more information on the knife bug
    that causes this.
  TXT
end

.prerelease?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/knife-solo/info.rb', line 21

def self.prerelease?
  Gem::Version.new(self.version).prerelease?
end

.resource(name) ⇒ Object



5
6
7
# File 'lib/knife-solo.rb', line 5

def self.resource(name)
  Pathname.new(__FILE__).dirname.join('knife-solo/resources', name)
end

.versionObject



2
3
4
# File 'lib/knife-solo/info.rb', line 2

def self.version
  '0.7.0'
end