deployless 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 5bfc7b104a8c5204bd2bcc0bc4cb003342696d899e734a1d5cfffa3193f78b36
4
+ data.tar.gz: c08743ddc2790ef4e72400421ed0fa2b825069078b5ef097a2e66613bc8e00f5
5
+ SHA512:
6
+ metadata.gz: 9f4461a61ccd5663588e4211592071fbcfb1be989b248a2b8fb9ccf4e1e308ffc608f02b14ea6b84159ac2b3c311df1d8304530b859e033ece5c4584bbfb4601
7
+ data.tar.gz: c8077628d33494a0ac02deeccc6ea992e9fde3d87d7f28ab152c4a4884ccbd1f0b7d2f04c0fd7cf43b1d483df1a9e3a53cf38d4d4c8b800aae758809863918fa
data/bin/dpls ADDED
@@ -0,0 +1,40 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'tty-option'
4
+ require 'tty-prompt'
5
+ require 'tty-file'
6
+ require 'yaml'
7
+
8
+ class Command
9
+ include TTY::Option
10
+
11
+ argument :command do
12
+ desc "The command to run"
13
+ end
14
+ end
15
+
16
+ command = Command.new
17
+ command.parse(ARGV)
18
+
19
+ case command.params['command']
20
+ when 'init'
21
+ prompt = TTY::Prompt.new
22
+ result = prompt.collect do
23
+ key(:deployment_setup).enum_select("Deployment setup:", ["Dokku"], required: true)
24
+ key(:background_job_processor).enum_select("Background job processor:", ["None", "Sidekiq"], required: true)
25
+ key(:production_server_ip).ask("Production server IP:", required: true)
26
+ key(:production_server_username).ask("Production server username:", required: true, default: 'ubuntu')
27
+ key(:ssh_key_path).ask("SSH key path:", required: true, default: '~/.ssh/id_rsa')
28
+ key(:email).ask("Email:", required: true)
29
+ key(:app_name).ask("Application name:", required: true)
30
+ end
31
+
32
+ TTY::File.create_file('.deployless.yml', result.to_yaml)
33
+ TTY::File.safe_append_to_file(".gitignore", ".deployless.yml")
34
+ when 'prepare'
35
+ config = YAML.load_file('.deployless.yml')
36
+ puts "Config: #{config.inspect}"
37
+ else
38
+ puts 'Unknown command'
39
+ end
40
+
@@ -0,0 +1,9 @@
1
+ module Deployless
2
+ module Version
3
+ module_function
4
+
5
+ def to_s
6
+ '0.0.1'
7
+ end
8
+ end
9
+ end
data/lib/deployless.rb ADDED
File without changes
metadata ADDED
@@ -0,0 +1,136 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: deployless
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Paweł Dąbrowski
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2024-12-14 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rspec
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.7'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 3.7.0
23
+ type: :development
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '3.7'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 3.7.0
33
+ - !ruby/object:Gem::Dependency
34
+ name: pry
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ type: :development
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: sshkit
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - '='
52
+ - !ruby/object:Gem::Version
53
+ version: 1.23.2
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - '='
59
+ - !ruby/object:Gem::Version
60
+ version: 1.23.2
61
+ - !ruby/object:Gem::Dependency
62
+ name: tty-option
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - '='
66
+ - !ruby/object:Gem::Version
67
+ version: 0.3.0
68
+ type: :runtime
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - '='
73
+ - !ruby/object:Gem::Version
74
+ version: 0.3.0
75
+ - !ruby/object:Gem::Dependency
76
+ name: tty-prompt
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - '='
80
+ - !ruby/object:Gem::Version
81
+ version: 0.23.1
82
+ type: :runtime
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - '='
87
+ - !ruby/object:Gem::Version
88
+ version: 0.23.1
89
+ - !ruby/object:Gem::Dependency
90
+ name: tty-file
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - '='
94
+ - !ruby/object:Gem::Version
95
+ version: 0.10.0
96
+ type: :runtime
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - '='
101
+ - !ruby/object:Gem::Version
102
+ version: 0.10.0
103
+ description: Spend less time configuring deployment for your Rails application
104
+ email: contact@paweldabrowski.com
105
+ executables:
106
+ - dpls
107
+ extensions: []
108
+ extra_rdoc_files: []
109
+ files:
110
+ - bin/dpls
111
+ - lib/deployless.rb
112
+ - lib/deployless/version.rb
113
+ homepage: https://github.com/impactahead/deployless
114
+ licenses:
115
+ - MIT
116
+ metadata: {}
117
+ post_install_message:
118
+ rdoc_options: []
119
+ require_paths:
120
+ - lib
121
+ required_ruby_version: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ">="
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ required_rubygems_version: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - ">="
129
+ - !ruby/object:Gem::Version
130
+ version: '0'
131
+ requirements: []
132
+ rubygems_version: 3.4.10
133
+ signing_key:
134
+ specification_version: 4
135
+ summary: Spend less time configuring deployment for your Rails application
136
+ test_files: []