vagrant-astra 0.1.0

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
+ SHA1:
3
+ metadata.gz: 639604a63bce7c46b18f8ad431bef2541ffcee8f
4
+ data.tar.gz: fb6f6d4eca870d0d1a2b21c230b33b31549576bf
5
+ SHA512:
6
+ metadata.gz: dfa2af35029401a8002d72deaa5a725ffc1f5cf34c570a8b1d2bfaa6a0719c7935488ff75e16d9c2f449df79ac9901875559dca70c6a404d5e3e2b7367479704
7
+ data.tar.gz: 7f0850bdf30cda1c0391ffa856a81e0ba940298b98947ddd1b69ad2feb0831a407f4d6b1bcec5657f6a8d4d31cb54c8416cefadd6ff01451e83859f1be615e04
data/.gitignore ADDED
@@ -0,0 +1,2 @@
1
+ *.swp
2
+ *.gem
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 Andrey Kirillov
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
13
+ all 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
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,19 @@
1
+ # Vagrant Astra Linux Guest
2
+
3
+ This is a [Vagrant](http://vagrantup.com/) plugin adding support for [Astra Linux](https://astralinux.ru/) guests.
4
+
5
+ > **NOTE:** The vagrant-astra plugin requires Vagrant 2.0+
6
+
7
+ ## Features
8
+
9
+ * Vagrant OS detection
10
+
11
+ ## Changes
12
+
13
+ * v0.1.0 - initial version
14
+
15
+ ## Installation
16
+
17
+ ```
18
+ $ vagrant plugin install vagrant-astra
19
+ ```
@@ -0,0 +1,18 @@
1
+ begin
2
+ require 'vagrant'
3
+ rescue LoadError
4
+ raise 'The Vagrant Astra Linux Guest plugin must be run within Vagrant.'
5
+ end
6
+
7
+ if Vagrant::VERSION < '2.0.0'
8
+ fail 'The vagrant-astra plugin is only compatible with Vagrant 2.0+'
9
+ end
10
+
11
+ module VagrantPlugins
12
+ module GuestAstra
13
+ class Guest < Vagrant.plugin('2', :guest)
14
+ # Name used for guest detection
15
+ GUEST_DETECTION_NAME = "astra".freeze
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,23 @@
1
+ begin
2
+ require 'vagrant'
3
+ rescue LoadError
4
+ raise 'The Vagrant Astra Linux Guest plugin must be run within Vagrant.'
5
+ end
6
+
7
+ if Vagrant::VERSION < '2.0.0'
8
+ fail 'The vagrant-astra plugin is only compatible with Vagrant 2.0+'
9
+ end
10
+
11
+ module VagrantPlugins
12
+ module GuestAstra
13
+ class Plugin < Vagrant.plugin("2")
14
+ name "Astra Linux guest"
15
+ description "Astra Linux guest support."
16
+
17
+ guest(:astra, :debian) do
18
+ require_relative "guest"
19
+ Guest
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,6 @@
1
+ module VagrantPlugins
2
+ # Astra Linux guest gem + plugin version
3
+ module GuestAstra
4
+ VERSION = '0.1.0'
5
+ end
6
+ end
@@ -0,0 +1,7 @@
1
+ require 'pathname'
2
+ require 'vagrant-astra/plugin'
3
+
4
+ module VagrantPlugins
5
+ module GuestAstra
6
+ end
7
+ end
@@ -0,0 +1,23 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'vagrant-astra/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'vagrant-astra'
8
+ spec.version = VagrantPlugins::GuestAstra::VERSION
9
+ spec.license = 'MIT'
10
+
11
+ spec.authors = ['Andrey Kirillov']
12
+ spec.email = ['akirillov@astralinux.ru']
13
+
14
+ spec.summary = 'Enables Vagrant to manage Astra Linux Guests.'
15
+ spec.description = <<-EOF
16
+ Vagrant support for Astra Linux Guests.
17
+ EOF
18
+ spec.homepage = 'https://github.com/astralnx/vagrant-astra'
19
+
20
+ spec.files = `git ls-files -z`.split("\x0")
21
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
22
+ spec.require_path = 'lib'
23
+ end
metadata ADDED
@@ -0,0 +1,54 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: vagrant-astra
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Andrey Kirillov
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2022-02-02 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: 'Vagrant support for Astra Linux Guests.
14
+
15
+ '
16
+ email:
17
+ - akirillov@astralinux.ru
18
+ executables: []
19
+ extensions: []
20
+ extra_rdoc_files: []
21
+ files:
22
+ - ".gitignore"
23
+ - LICENSE
24
+ - README.md
25
+ - lib/vagrant-astra.rb
26
+ - lib/vagrant-astra/guest.rb
27
+ - lib/vagrant-astra/plugin.rb
28
+ - lib/vagrant-astra/version.rb
29
+ - vagrant-astra.gemspec
30
+ homepage: https://github.com/astralnx/vagrant-astra
31
+ licenses:
32
+ - MIT
33
+ metadata: {}
34
+ post_install_message:
35
+ rdoc_options: []
36
+ require_paths:
37
+ - lib
38
+ required_ruby_version: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: '0'
43
+ required_rubygems_version: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ requirements: []
49
+ rubyforge_project:
50
+ rubygems_version: 2.5.2.1
51
+ signing_key:
52
+ specification_version: 4
53
+ summary: Enables Vagrant to manage Astra Linux Guests.
54
+ test_files: []