Sha256: 76c65bfb5e1ca28c2822900ff467cd7c22b2da354259a13a8095e3ac928fd375
Contents?: true
Size: 742 Bytes
Versions: 1
Compression:
Stored size: 742 Bytes
Contents
module Yun class YunCommand < Thor include CommandBase desc "ssh NODE_NAME", "ssh to a node" def ssh node_name node = connection.find node_name ssh_config = SshConfig.new node.user, node.key_name ssh = Ssh.new node.ip, ssh_config ssh.connect end desc "test NODE_NAME, ROLE", "provision node with chef" def chef node_name, role node = connection.find node_name ssh_config = SshConfig.new node.user, node.key_name ssh = Ssh.new node.ip, ssh_config ssh.chef role end register NodeCommand, :node, "node SUBCOMMAND", "commands for node" register ImageCommand, :image, "image SUBCOMMAND", "commands for image" private end end Yun::YunCommand.start
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
yun-0.0.6 | lib/yun/commands/yun_command.rb |