lib/fulmar/domain/service/configuration_service.rb in fulmar-1.3.0 vs lib/fulmar/domain/service/configuration_service.rb in fulmar-1.4.0
- old
+ new
@@ -65,9 +65,13 @@
def target=(target)
@target = target ? target.to_sym : nil
end
+ def ssh_user_and_host
+ self[:user].blank? ? self[:hostname] : self[:user] + '@' + self[:hostname]
+ end
+
def dependencies(env = nil)
env.nil? ? @config[:dependencies][:all] : @config[:dependencies][:all].deep_merge(@config[:dependencies][env])
end
def ready?