Class: Appril::CLI::Docker::Update
- Inherits:
-
Appril::CLI::Docker
- Object
- Appril::CLI::Docker
- Appril::CLI::Docker::Update
- Defined in:
- lib/appril-cli/docker/update.rb
Constant Summary
Constants inherited from Appril::CLI::Docker
BUILD_FILE, CLEANUP_FILE, CONFIG_FILE, PREPARE_BUILD_FILE, START_FILE
Instance Method Summary collapse
-
#initialize(path) ⇒ Update
constructor
A new instance of Update.
Methods inherited from Appril::CLI::Docker
Methods included from Assertions
#assert_config_file_exists, #assert_directory_does_not_exists, #assert_directory_exists, #assert_empty_directory, #assert_installable_path, #assert_is_app_dir
Methods included from Helpers
#create_dirname_for, #expanded_path, #extract_namespace, #fatal_error!, #format_error, #make_executable
Constructor Details
#initialize(path) ⇒ Update
Returns a new instance of Update.
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/appril-cli/docker/update.rb', line 7 def initialize path src, dst = paths(path) Dir.chdir src do Dir['**/*'].select {|e| File.file?(e)}.each do |file| update_file(file, dst) end end post_update(dst) puts "Done" end |