Class: MarketplaceKit::Commands::Deploy::ListChangedFiles

Inherits:
Object
  • Object
show all
Defined in:
lib/marketplace_kit/commands/deploy.rb

Instance Method Summary collapse

Constructor Details

#initialize(manifest, settings) ⇒ ListChangedFiles

Returns a new instance of ListChangedFiles.



87
88
89
90
# File 'lib/marketplace_kit/commands/deploy.rb', line 87

def initialize(manifest, settings)
  @manifest = manifest
  @settings = settings
end

Instance Method Details

#callObject



92
93
94
95
96
97
98
# File 'lib/marketplace_kit/commands/deploy.rb', line 92

def call
  @manifest.reject do |path, meta|
    path.start_with?('/custom_themes/') &&
      manifest_on_server[path] &&
      manifest_on_server[path]['md5'] == meta['md5']
  end
end