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