lib/bolt/inventory/group2.rb
# Returns all targets contained within the group, which includes targets from subgroups.
Returns all targets contained within the group, which includes targets from subgroups.
Returns all targets contained within the group which includes targets from subgroups .
def target_names
        @groups.inject(local_target_names) do |acc, g|
          acc.merge(g.target_names)
        end
      end
def target_names @groups . inject ( local_target_names ) do | acc , g | acc . merge ( g . target_names ) end end
Returns all targets contained within the group, which includes targets from subgroups.
Returns all targets contained within the group which includes targets from subgroups .