capistrano-one_time_key 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 18a0f1d72bbda6095497e9e52cf7e5cd5fe6cf8a
4
- data.tar.gz: 02c5c5582e72a125b8598551aaeb4fbc44a28d4c
2
+ SHA256:
3
+ metadata.gz: cc4be8c2de3122934117151da242aba35f59dd5ab325a293ec22c3c87d20b0ac
4
+ data.tar.gz: 7f236f40b4b78e727a834d49d1a552e52e603b51cd22d70c126e730504f21b36
5
5
  SHA512:
6
- metadata.gz: '0877a5a85ebd3070e5be342cae30249c5b3686b6b678ec04ac35e2ce748cdc3d83ae3c3ad23bf5e5f365fad118ee6a67f43c10cf56adbd7070f0d08b3234bd88'
7
- data.tar.gz: '059cd9cb9fea9c16fd7423788185ad212742fab56214e3ccc5ee8292564ac811548eb14f7cd9b32076b00c6fdf695f143c570204bcc4bebc96276da251141b93'
6
+ metadata.gz: a02232091ebbdfbc49f950fbf91196d1cfbcd9ead3843ede86b53a94feac1a58797afed02a2ed696987c4d834fe78da336576993c36f665377188b4fe3c334ab
7
+ data.tar.gz: de622be669fdd154632b13f07fd8593d036931ae12562f1308b7afdbda7f919a5170fc3af99f108c0856af733f9d052bd47952d0c609268bf45fee98a764d8d4
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
 
20
20
  spec.add_dependency "capistrano", "~> 3.0"
21
21
 
22
- spec.add_development_dependency "bundler", "~> 1.5"
22
+ spec.add_development_dependency "bundler", "~> 2"
23
23
  spec.add_development_dependency "rake"
24
24
  spec.add_development_dependency "rspec"
25
25
  end
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module OneTimeKey
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
@@ -23,7 +23,10 @@ module Capistrano
23
23
  end
24
24
 
25
25
  def self.generate_one_time_key!
26
+ # This is a no-op because it's called everywhere.
27
+ end
26
28
 
29
+ def self.use_one_time_key!
27
30
  path = generate_private_key!
28
31
 
29
32
  public_key = File.read("#{path}.pub")
@@ -1,9 +1,21 @@
1
1
  namespace :load do
2
- task :defaults do
2
+ task :defaults do
3
3
  set :ssh_options, {
4
4
  keys: [Capistrano::OneTimeKey.temporary_ssh_private_key_path],
5
5
  forward_agent: false,
6
6
  auth_methods: %w(publickey password)
7
7
  }
8
8
  end
9
- end
9
+ end
10
+
11
+ namespace :otk do
12
+ task :generate do
13
+ Capistrano::OneTimeKey.use_one_time_key!
14
+ end
15
+ end
16
+
17
+ namespace :deploy do
18
+ before :starting, :generate_otk do
19
+ invoke 'otk:generate'
20
+ end
21
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-one_time_key
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Beer
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-08 00:00:00.000000000 Z
11
+ date: 2024-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.5'
33
+ version: '2'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.5'
40
+ version: '2'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -66,7 +66,7 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
- description:
69
+ description:
70
70
  email:
71
71
  - cabeer@stanford.edu
72
72
  executables: []
@@ -87,7 +87,7 @@ homepage: ''
87
87
  licenses:
88
88
  - APACHE2
89
89
  metadata: {}
90
- post_install_message:
90
+ post_install_message:
91
91
  rdoc_options: []
92
92
  require_paths:
93
93
  - lib
@@ -102,9 +102,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  requirements: []
105
- rubyforge_project:
106
- rubygems_version: 2.6.11
107
- signing_key:
105
+ rubygems_version: 3.5.9
106
+ signing_key:
108
107
  specification_version: 4
109
108
  summary: One time keys for capistrano
110
109
  test_files: