Sha256: 522c549c0042ace08b6c464301bf828eac9038600f4823e350dbecb9a2857b6b

Contents?: true

Size: 943 Bytes

Versions: 17

Compression:

Stored size: 943 Bytes

Contents

require_relative 'default-studio'

module Context
  class ContextRubyStudio < DefaultStudio
    banner "knife context ruby 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
    
    # 2
    def do_download
      super
      system('bundle install')
      true
    end
    
    # 2
    # def do_verify
    #   super
    #   cucumber(self)
    #   true
    # end
    
    # 4
    def do_clean
      super
      delete_file_only_if_exist(get_context_file(self, 'Gemfile.lock'))
      true
    end
    
    # 9
    def do_end
      super
      ruby_release(self)
      true
    end

    def studio_present?
      execute_command('which ruby') || super
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
deploy-context-2.13.39 x86_64-linux/lib/deploy-context/ruby-studio.rb
deploy-context-2.13.38 x86_64-linux/lib/deploy-context/ruby-studio.rb
deploy-context-2.13.36 x86_64-linux/lib/deploy-context/ruby-studio.rb
deploy-context-2.13.35 x86_64-linux/lib/deploy-context/ruby-studio.rb
deploy-context-2.13.34 x86_64-linux/lib/deploy-context/ruby-studio.rb
deploy-context-2.13.26 /home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/ruby-studio.rb
deploy-context-2.13.25 /home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/ruby-studio.rb
deploy-context-2.13.17 /home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/ruby-studio.rb
deploy-context-2.13.8 /src/libraries/deploy-context/helpers/../../../libraries/deploy-context/ruby-studio.rb
deploy-context-2.13.7.1.g02c67e1 /home/jimboadmin/deploy-context/libraries/deploy-context/helpers/../../../libraries/deploy-context/ruby-studio.rb
deploy-context-2.13.7 /home/jimboadmin/deploy-context/libraries/deploy-context/helpers/../../../libraries/deploy-context/ruby-studio.rb
deploy-context-2.13.6 /home/jimboadmin/deploy-context/libraries/deploy-context/helpers/../../../libraries/deploy-context/ruby-studio.rb
deploy-context-2.13.5.1.gb802412 /home/jimboadmin/deploy-context/libraries/deploy-context/helpers/../../../libraries/deploy-context/ruby-studio.rb
deploy-context-2.13.5 /home/jimboadmin/deploy-context/libraries/deploy-context/helpers/../../../libraries/deploy-context/ruby-studio.rb
deploy-context-2.13.4 /home/jimboadmin/deploy-context/libraries/deploy-context/helpers/../../../libraries/deploy-context/ruby-studio.rb
deploy-context-2.13.3 /home/jimboadmin/deploy-context/libraries/deploy-context/helpers/../../../libraries/deploy-context/ruby-studio.rb
deploy-context-2.13.2.18.g9a85249 /home/jimboadmin/deploy-context/libraries/deploy-context/helpers/../../../libraries/deploy-context/ruby-studio.rb