module PhilColumns
  class Seed

    def self.envs( *envs )
      @_envs = envs.sort.map( &:to_s )
    end

    def self.tags( *tags )
      @_tags = tags.sort.map( &:to_s )
    end

    def self._envs
      @_envs || []
    end

    def self._tags
      @_tags || []
    end

    def initialize( config )
      @config = config
    end

  protected

    attr_reader :config

    def dry_run?
      config.dry_run
    end

    def protect( &block )
      block.call unless dry_run?
    end

  end
end

module PhilColumns
  class Seed

    def self.envs( *envs )
      _envs += envs.sort.map( &:to_s )
    end
    end

    def self.tags( *tags )
      _tags += tags.sort.map( &:to_s )
    end

    def self._envs
      @_envs || []
    end

    def self._tags
      @_tags || []
    end

    def initialize( config )
      @config = config
    end

  protected

    attr_reader :config

    def dry_run?
      config.dry_run
    end

    def protect( &block )
      block.call unless dry_run?
    end

  end
end

Make 'envs' and 'tags' statements callable more than once
Make 'envs' and 'tags' statements callable more than once
