Class: AppUp::Repo

Inherits:
Struct
  • Object
show all
Defined in:
lib/app_up/repo.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#options=(value) ⇒ Object

Sets the attribute options

Parameters:

  • value (Object)

    the value to set the attribute options to.

Returns:

  • (Object)

    the newly set value



2
3
4
# File 'lib/app_up/repo.rb', line 2

def options=(value)
  @options = value
end

#shell=(value) ⇒ Object

Sets the attribute shell

Parameters:

  • value (Object)

    the value to set the attribute shell to.

Returns:

  • (Object)

    the newly set value



2
3
4
# File 'lib/app_up/repo.rb', line 2

def shell=(value)
  @shell = value
end

Instance Method Details

#filesObject



6
7
8
9
# File 'lib/app_up/repo.rb', line 6

def files
  ignores = options.has_key?(:ingore) ? options[:ignore] : Configuration::Config.ignore
  default_files.reject {|f| ignores.any? {|i| f.match(i)} }
end