4
4
# is considered to be the first unless any hosts have the primary
5
5
# property set. Don't declare `role :all`, it's a meta role.
6
6
7
-
8
-
9
-
10
-
11
7
12
8
# Extended Server Syntax
13
9
# ======================
14
10
# This can be used to drop a more detailed server definition into the
15
11
# server list. The second argument is a, or duck-types, Hash and is
16
12
# used to set extended properties on the server.
17
13
18
- server 'example.com ' , user : 'deploy' , roles : %w{ web app } , my_property : :my_value
14
+ server 'vps.edo ' , user : 'deploy' , roles : %w{ web app db }
19
15
16
+ namespace :app do
17
+ task :update_rvm_key do
18
+ on roles ( :all ) do
19
+ execute :gpg , '--keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3'
20
+ end
21
+ end
22
+ end
23
+ before 'rvm1:install:rvm' , 'app:update_rvm_key'
20
24
21
- # Custom SSH Options
22
- # ==================
23
- # You may pass any option but keep in mind that net/ssh understands a
24
- # limited set of options, consult[net/ssh documentation](http://net-ssh.github.io/net-ssh/classes/Net/SSH.html#method-c-start).
25
- #
26
- # Global options
27
- # --------------
28
- # set :ssh_options, {
29
- # keys: %w(/home/rlisowski/.ssh/id_rsa),
30
- # forward_agent: false,
31
- # auth_methods: %w(password)
32
- # }
33
- #
34
- # And/or per server (overrides global)
35
- # ------------------------------------
36
- # server 'example.com',
37
- # user: 'user_name',
38
- # roles: %w{web app},
39
- # ssh_options: {
40
- # user: 'user_name', # overrides user setting above
41
- # keys: %w(/home/user_name/.ssh/id_rsa),
42
- # forward_agent: false,
43
- # auth_methods: %w(publickey password)
44
- # # password: 'please use keys'
45
- # }
25
+ before 'deploy' , 'rvm1:install:rvm'
26
+ before 'deploy' , 'rvm1:install:ruby'
27
+ before 'deploy' , 'rvm1:install:gems'
28
+ # after 'rvm1:install:ruby', 'deploy:install_bundler'
0 commit comments