vagrant-ruby 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: c32b7bf20347664e5133c3d1144e2e72ce284026
4
+ data.tar.gz: 61312965535dd1ed61db74839cb6ad0628107852
5
+ SHA512:
6
+ metadata.gz: 6650a2ed95a8bfd9f39d8ad4d24d8d1c62ba74784e2a28b6315e8e0a52999d177d0efeae6f6eead14e84154e02ac18707a3d3591e80ddb0474ee14dfa6d42875
7
+ data.tar.gz: f669b4efb39591a7992fd3dcac8930c882a8bc30a6e081293c03e7cc4ab9d9aef4031ea2cb294910ca99025f1af281599a2d334b04f1d1be8e826d429a32e687
@@ -0,0 +1,25 @@
1
+ #
2
+ # Copyright (c) 2016 Catalyst.net Ltd
3
+ #
4
+ # This file is part of vagrant-ruby.
5
+ #
6
+ # vagrant-ruby is free software: you can redistribute it and/or modify
7
+ # it under the terms of the GNU General Public License as published by
8
+ # the Free Software Foundation, either version 3 of the License, or (at
9
+ # your option) any later version.
10
+ #
11
+ # vagrant-ruby is distributed in the hope that it will be useful, but
12
+ # WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ # General Public License for more details.
15
+ #
16
+ # You should have received a copy of the GNU General Public License
17
+ # along with vagrant-ruby. If not, see <http://www.gnu.org/licenses/>.
18
+ #
19
+
20
+ module Vagrant
21
+ module Ruby
22
+ NAME = 'vagrant-ruby'
23
+ VERSION = '0.1.0'
24
+ end
25
+ end
@@ -0,0 +1,55 @@
1
+ #
2
+ # Copyright (c) 2016 Catalyst.net Ltd
3
+ #
4
+ # This file is part of vagrant-ruby.
5
+ #
6
+ # vagrant-ruby is free software: you can redistribute it and/or modify
7
+ # it under the terms of the GNU General Public License as published by
8
+ # the Free Software Foundation, either version 3 of the License, or (at
9
+ # your option) any later version.
10
+ #
11
+ # vagrant-ruby is distributed in the hope that it will be useful, but
12
+ # WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ # General Public License for more details.
15
+ #
16
+ # You should have received a copy of the GNU General Public License
17
+ # along with vagrant-ruby. If not, see <http://www.gnu.org/licenses/>.
18
+ #
19
+
20
+ require 'rubygems'
21
+ require 'vagrant/ruby/version'
22
+
23
+ module Vagrant
24
+ module Ruby
25
+ COMMANDS = %w{gem irb rake rdoc ruby}
26
+
27
+ class Command < Vagrant.plugin('2', :command)
28
+ attr_reader :name
29
+
30
+ def initialize(name)
31
+ @name = name
32
+ end
33
+
34
+ def new(*_) # Oy vey.
35
+ self
36
+ end
37
+
38
+ def synopsis
39
+ "execute Vagrant's embedded #{name}"
40
+ end
41
+
42
+ def execute
43
+ command = File.join(Gem.default_bindir, name)
44
+ Process.exec([command, name], *ARGV[1..-1])
45
+ end
46
+ end
47
+
48
+ class Plugin < Vagrant.plugin('2')
49
+ name 'ruby'
50
+ COMMANDS.each do |name|
51
+ command(name) { Command.new(name) }
52
+ end
53
+ end
54
+ end
55
+ end
metadata ADDED
@@ -0,0 +1,45 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: vagrant-ruby
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Evan Hanson
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-11-23 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Adds subcommands for Vagrant's embedded Ruby and associated programs
14
+ email: evanh@catalyst.net.nz
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/vagrant/ruby.rb
20
+ - lib/vagrant/ruby/version.rb
21
+ homepage: https://gitlab.com/catalyst-it/vagrant-ruby
22
+ licenses:
23
+ - GPL-3.0
24
+ metadata: {}
25
+ post_install_message:
26
+ rdoc_options: []
27
+ require_paths:
28
+ - lib
29
+ required_ruby_version: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ required_rubygems_version: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ">="
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ requirements: []
40
+ rubyforge_project:
41
+ rubygems_version: 2.5.1
42
+ signing_key:
43
+ specification_version: 4
44
+ summary: Use Vagrant's embedded Ruby commands
45
+ test_files: []