Created
May 22, 2019 23:14
-
-
Save teknofire/84e1514e1af48255975493e105122cae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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