Sha256: 80b6fd8c75d56e84af9c42e13ce6f9b62e3b0138444d9a8923bc672772877f9c
Contents?: true
Size: 1.04 KB
Versions: 8
Compression:
Stored size: 1.04 KB
Contents
require_relative 'cookbook-studio' module Context class ContextHabitatStudio < DefaultStudio banner "knife context habitat studio" deps do Knife::DefaultKnifeContext.load_deps end option :omg, :short => '-O', :long => '--omg', :description => "I'm so excited! 9" def run if config[:omg] puts "OMG HELLO WORLD!!!9!!99" else puts "I am just a fucking example. 9" end end def do_clean super delete_file_only_if_exist(get_context_file(self, 'respond.txt')) delete_folder_only_if_exist(get_context_file(self, 'results/logs')) true end def do_install super bundle_gem self, ['install', context_name] build_habitat(self) true end # 10 def do_strip super Dir.chdir context_folder start_habitat_job(self) true end # 11 def do_end super promote_habitat(self) end def studio_available? is_binary_available?('hab') && super end end end
Version data entries
8 entries across 8 versions & 1 rubygems