vpsctl 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +26 -0
- data/exe/vpsctl +6 -0
- data/lib/vpsctl/cli.rb +37 -0
- data/lib/vpsctl/version.rb +5 -0
- data/lib/vpsctl.rb +7 -0
- metadata +51 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 92639aa1dcd77cf060f44f2cdc9d0df5d8d8d8b871145f49c136311299732d7d
|
|
4
|
+
data.tar.gz: 54aa7c7cecbce8f419d6ca1a69332dc65bbd51e36c7a72cf9aeee9defd0b84e8
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 836b234b55225290b79476f6d40752f139a0e2e5b78a7365f3df249efa002ac4e596e278cb51326a861f6eb7d505299355cff2cd5d4ae3e9849816ed3351e078
|
|
7
|
+
data.tar.gz: 8c7c8b09c5fa8b6423333a64d01c01845bef5b35e2c5198866b66978cc3d81f55ea16f5c5be89c7f4a4d798da37eccc0ed52e6730e38a3cc0c0cbbde7c3854bc
|
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Alberto Rocha
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# vpsctl
|
|
2
|
+
|
|
3
|
+
`vpsctl` is a CLI for automating VPS groundwork before application deployment.
|
|
4
|
+
|
|
5
|
+
The first public release reserves the gem name and provides the project skeleton.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
gem install vpsctl
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
vpsctl version
|
|
17
|
+
vpsctl help
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Development
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
bundle install
|
|
24
|
+
bundle exec exe/vpsctl version
|
|
25
|
+
gem build vpsctl.gemspec
|
|
26
|
+
```
|
data/exe/vpsctl
ADDED
data/lib/vpsctl/cli.rb
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Vpsctl
|
|
4
|
+
class CLI
|
|
5
|
+
def initialize(argv)
|
|
6
|
+
@argv = argv
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
def call
|
|
10
|
+
case @argv.first
|
|
11
|
+
when "version", "--version", "-v"
|
|
12
|
+
puts Vpsctl::VERSION
|
|
13
|
+
when "help", "--help", "-h", nil
|
|
14
|
+
puts help
|
|
15
|
+
else
|
|
16
|
+
warn "Unknown command: #{@argv.first}"
|
|
17
|
+
warn
|
|
18
|
+
warn help
|
|
19
|
+
1
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
private
|
|
24
|
+
|
|
25
|
+
def help
|
|
26
|
+
<<~HELP
|
|
27
|
+
vpsctl #{Vpsctl::VERSION}
|
|
28
|
+
|
|
29
|
+
Usage:
|
|
30
|
+
vpsctl help
|
|
31
|
+
vpsctl version
|
|
32
|
+
|
|
33
|
+
vpsctl will automate VPS groundwork for application deployments.
|
|
34
|
+
HELP
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
data/lib/vpsctl.rb
ADDED
metadata
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: vpsctl
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Alberto Rocha
|
|
8
|
+
bindir: exe
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies: []
|
|
12
|
+
description: vpsctl automates VPS provisioning groundwork such as server setup, SSH
|
|
13
|
+
preparation, and deployment metadata output.
|
|
14
|
+
email:
|
|
15
|
+
- betogrun@gmail.com
|
|
16
|
+
executables:
|
|
17
|
+
- vpsctl
|
|
18
|
+
extensions: []
|
|
19
|
+
extra_rdoc_files: []
|
|
20
|
+
files:
|
|
21
|
+
- LICENSE.txt
|
|
22
|
+
- README.md
|
|
23
|
+
- exe/vpsctl
|
|
24
|
+
- lib/vpsctl.rb
|
|
25
|
+
- lib/vpsctl/cli.rb
|
|
26
|
+
- lib/vpsctl/version.rb
|
|
27
|
+
homepage: https://github.com/vpsctl/vpsctl
|
|
28
|
+
licenses:
|
|
29
|
+
- MIT
|
|
30
|
+
metadata:
|
|
31
|
+
homepage_uri: https://github.com/vpsctl/vpsctl
|
|
32
|
+
source_code_uri: https://github.com/vpsctl/vpsctl
|
|
33
|
+
changelog_uri: https://github.com/vpsctl/vpsctl/releases
|
|
34
|
+
rdoc_options: []
|
|
35
|
+
require_paths:
|
|
36
|
+
- lib
|
|
37
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
38
|
+
requirements:
|
|
39
|
+
- - ">="
|
|
40
|
+
- !ruby/object:Gem::Version
|
|
41
|
+
version: '3.2'
|
|
42
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
43
|
+
requirements:
|
|
44
|
+
- - ">="
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: '0'
|
|
47
|
+
requirements: []
|
|
48
|
+
rubygems_version: 4.0.10
|
|
49
|
+
specification_version: 4
|
|
50
|
+
summary: Automate VPS groundwork before application deployment.
|
|
51
|
+
test_files: []
|