Sha256: b10f52738c8e364aa0eda63ec1b3029d30ce05c17f29f9327fbde915034751f2
Contents?: true
Size: 615 Bytes
Versions: 1
Compression:
Stored size: 615 Bytes
Contents
require 'mulder' module Mulder class Capistrano def initialize(config_file, application, environment) config = ::Mulder::Config.from(:yaml, file: config_file) @connection = ::Mulder::Connection.new(config) @application = application @environment = environment end def client(role) @client ||= ::Mulder::Client.new(@connection, @application, @environment, role) end def ips(role, use_private = false) type_of_ips = use_private ? :private_ip_address : :public_ip_address client(role).instances.collect(&type_of_ips).compact end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mulder-0.0.1 | lib/mulder/capistrano.rb |