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

#optionsObject

Returns the value of attribute options



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

def options
  @options
end

#shellObject

Returns the value of attribute shell



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

def shell
  @shell
end

Instance Method Details

#filesObject



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

def files
  if options[:diff]
    diff(*options[:diff])
  else
    all
  end
end