lib/danarchy_deploy/groups.rb in danarchy_deploy-0.2.5 vs lib/danarchy_deploy/groups.rb in danarchy_deploy-0.2.6
- old
+ new
@@ -1,8 +1,9 @@
module DanarchyDeploy
class Groups
def self.new(deployment, options)
+ return deployment if ! deployment[:groups]
puts "\n" + self.name
(groupadd_result, groupdel_result) = nil
deployment[:groups].each do |group|
puts " > Checking if group '#{group[:groupname]}' already exists."