def install_ruby(): """ Installs defined ruby """ # Cleanup any packaged ruby hookenv.log('Installing ruby', 'debug') # Install prereqs rubylib.install_dev_packages() # Download rubylib.download_ruby() # Extract rubylib.extract_ruby() # Install rubylib.compile_ruby() set_state('ruby.installed')