Class: Fastlane::Actions::RsyncAction
Constant Summary
Fastlane::Action::AVAILABLE_CATEGORIES, Fastlane::Action::RETURN_TYPES
Class Method Summary
collapse
action_name, author, deprecated_notes, lane_context, method_missing, other_action, output, return_type, return_value, sample_return_value, shell_out_should_use_bundle_exec?, step_text
Class Method Details
.authors ⇒ Object
49
50
51
|
# File 'fastlane/lib/fastlane/actions/rsync.rb', line 49
def self.authors
["hjanuschka"]
end
|
.available_options ⇒ Object
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# File 'fastlane/lib/fastlane/actions/rsync.rb', line 28
def self.available_options
[
FastlaneCore::ConfigItem.new(key: :extra,
short_option: "-X",
env_name: "FL_RSYNC_EXTRA", description: "Port", optional: true,
default_value: "-av"),
FastlaneCore::ConfigItem.new(key: :source,
short_option: "-S",
env_name: "FL_RSYNC_SRC", description: "source file/folder", optional: false),
FastlaneCore::ConfigItem.new(key: :destination,
short_option: "-D",
env_name: "FL_RSYNC_DST", description: "destination file/folder", optional: false)
]
end
|
.category ⇒ Object
66
67
68
|
# File 'fastlane/lib/fastlane/actions/rsync.rb', line 66
def self.category
:misc
end
|
.description ⇒ Object
20
21
22
|
# File 'fastlane/lib/fastlane/actions/rsync.rb', line 20
def self.description
"Rsync files from :source to :destination"
end
|
.details ⇒ Object
24
25
26
|
# File 'fastlane/lib/fastlane/actions/rsync.rb', line 24
def self.details
"A wrapper around `rsync`, which is a tool that lets you synchronize files, including permissions and so on. For a more detailed information about `rsync`, please see [rsync(1) man page](https://linux.die.net/man/1/rsync)."
end
|
.example_code ⇒ Object
57
58
59
60
61
62
63
64
|
# File 'fastlane/lib/fastlane/actions/rsync.rb', line 57
def self.example_code
[
'rsync(
source: "root@host:/tmp/1.txt",
destination: "/tmp/local_file.txt"
)'
]
end
|
.is_supported?(platform) ⇒ Boolean
53
54
55
|
# File 'fastlane/lib/fastlane/actions/rsync.rb', line 53
def self.is_supported?(platform)
true
end
|
.run(params) ⇒ Object
8
9
10
11
12
13
14
|
# File 'fastlane/lib/fastlane/actions/rsync.rb', line 8
def self.run(params)
rsync_cmd = ["rsync"]
rsync_cmd << params[:extra]
rsync_cmd << params[:source]
rsync_cmd << params[:destination]
Actions.sh(rsync_cmd.join(" "))
end
|