Skip to content

Instantly share code, notes, and snippets.

@teknofire
Created May 22, 2019 23:14
Show Gist options
  • Save teknofire/84e1514e1af48255975493e105122cae to your computer and use it in GitHub Desktop.
Save teknofire/84e1514e1af48255975493e105122cae to your computer and use it in GitHub Desktop.
# Place this file in ~/.chef/plugins/knife/ruby_version.rb
# Run by calling `knife ruby_version`
require 'chef/knife'
module RubyVersion
class RubyVersion < Chef::Knife
banner "knife ruby_version"
def run
puts "Ruby Version: #{RUBY_VERSION}"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment