Skip to content
This repository was archived by the owner on Mar 3, 2020. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions lib/wordpress_deploy/cli/utility.rb
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,29 @@ def transmit(environment)
# Exit with an error
exit(1)
end

desc "receive ENVIRONMENT", ""
def receive(environment)
# Set logger into verbose mode (if the user requested it)
Logger.verbose = options[:verbose]

# Set environment options
Config.set_options options

# Load ALL the available environments
WordpressDeploy::Environments.load

# Get the Environment the user requested
env = WordpressDeploy::Environments.find environments.to_sym

# Receive the files into wp_dir

rescue => err
Logger.error Errors::Cli::Utility::Error.wrap(err)

# Exit with an error
exit(1)
end
end
end
end
Expand Down