magic_recipes 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/magic_recipes.rb +7 -7
- metadata +1 -1
data/lib/magic_recipes.rb
CHANGED
@@ -58,13 +58,6 @@ module MagicRecipes
|
|
58
58
|
default_run_options[:pty] = true
|
59
59
|
ssh_options[:forward_agent] = true
|
60
60
|
|
61
|
-
# default put_via sftp
|
62
|
-
set_default :put_via, :sftp # => :sftp | :scp
|
63
|
-
|
64
|
-
def template(from, to)
|
65
|
-
erb = File.read(File.expand_path("../magic_recipes/templates/#{from}", __FILE__))
|
66
|
-
put ERB.new(erb).result(binding), to, via: put_via
|
67
|
-
end
|
68
61
|
|
69
62
|
def set_default(name, *args, &block)
|
70
63
|
set(name, *args, &block) unless exists?(name)
|
@@ -78,6 +71,13 @@ module MagicRecipes
|
|
78
71
|
password
|
79
72
|
end
|
80
73
|
|
74
|
+
# default put_via sftp
|
75
|
+
set_default :put_via, :sftp # => :sftp | :scp
|
76
|
+
|
77
|
+
def template(from, to)
|
78
|
+
erb = File.read(File.expand_path("../magic_recipes/templates/#{from}", __FILE__))
|
79
|
+
put ERB.new(erb).result(binding), to, via: put_via
|
80
|
+
end
|
81
81
|
|
82
82
|
set_default :use_rvm, false # => no_rvm
|
83
83
|
|