Sha256: 8fdd763db87d3cd59fe62e2c214d2a75a9eee88d76dc2440135ba51bbae4dff4
Contents?: true
Size: 339 Bytes
Versions: 7
Compression:
Stored size: 339 Bytes
Contents
require 'yaml' class Subspace::Commands::Ssh < Subspace::Commands::Base def initialize(args, options) @host = args.first run end def run host_vars = YAML.load_file("config/provision/host_vars/#{@host}") cmd = "ssh #{host_vars["ansible_ssh_user"]}@#{host_vars["ansible_ssh_host"]}" say cmd exec cmd end end
Version data entries
7 entries across 7 versions & 1 rubygems