lib/cicd/builder/ansiblerepo.rb in ansiblerepo-builder-0.2.2 vs lib/cicd/builder/ansiblerepo.rb in ansiblerepo-builder-0.3.3

- old
+ new

@@ -5,32 +5,33 @@ _lib=File.dirname(__FILE__) $:.unshift(_lib) unless $:.include?(_lib) require 'cicd/builder/ansiblerepo/version' - #noinspection ALL - class AnsibleRepoBuilder < ChefRepoBuilder + module AnsibleRepo + class Runner < ChefRepo::Runner - def initialize() - super - @default_options[:builder] = VERSION - end + def initialize() + super + @default_options[:builder] = VERSION + end - # --------------------------------------------------------------------------------------------------------------- - def getBuilderVersion - { - version: VERSION, - major: MAJOR, - minor: MINOR, - patch: PATCH, - } - end - # --------------------------------------------------------------------------------------------------------------- - def run() - $stdout.write("AnsibleRepoBuilder v#{CiCd::Builder::AnsibleRepo::VERSION}\n") - super - end + # --------------------------------------------------------------------------------------------------------------- + def getBuilderVersion + { + version: VERSION, + major: MAJOR, + minor: MINOR, + patch: PATCH, + } + end + # --------------------------------------------------------------------------------------------------------------- + def setup() + $stdout.write("AnsibleRepoBuilder v#{CiCd::Builder::AnsibleRepo::VERSION}\n") + super + end + end end end end \ No newline at end of file