Class: NeetoCompliance::SyncNeetoCommons::SyncBin

Inherits:
Object
  • Object
show all
Defined in:
lib/neeto_compliance/sync_neeto_commons/sync_bin.rb

Class Method Summary collapse

Class Method Details

.BIN_FILESObject



9
10
11
12
13
14
15
16
17
18
# File 'lib/neeto_compliance/sync_neeto_commons/sync_bin.rb', line 9

def self.BIN_FILES
  [
    "bin/bundle",
    "bin/setup",
    "bin/update",
    "bin/webpacker",
    "bin/webpacker-dev-server",
    "bin/yarn"
  ]
end

.processObject



20
21
22
# File 'lib/neeto_compliance/sync_neeto_commons/sync_bin.rb', line 20

def self.process
  sync_bin_files
end

.sync_bin_filesObject



24
25
26
27
28
29
# File 'lib/neeto_compliance/sync_neeto_commons/sync_bin.rb', line 24

def self.sync_bin_files
  self.BIN_FILES.each do |file|
    print "Downloading #{file}...\n"
    system(`cp #{NeetoCompliance::SyncNeetoCommons.neeto_commons_url}#{file} #{file}`)
  end
end