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.
Files changed (2) hide show
  1. data/lib/magic_recipes.rb +7 -7
  2. 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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magic_recipes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: