18 lines
317 B
Ruby
18 lines
317 B
Ruby
|
|
require "commands/knife_commands"
|
||
|
|
|
||
|
|
class KnifeFactory
|
||
|
|
|
||
|
|
class << self
|
||
|
|
def init
|
||
|
|
c = DevopsConfig.config[:knife_config]
|
||
|
|
raise "Option ':knife_config' is undefined, please check config.rb file" unless c
|
||
|
|
@instance = KnifeCommands.new(c)
|
||
|
|
end
|
||
|
|
|
||
|
|
def instance
|
||
|
|
@instance
|
||
|
|
end
|
||
|
|
end
|
||
|
|
|
||
|
|
end
|