vagrant-cowsay-fortune 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ext/string.rb +3 -0
- data/lib/vagrant/cowsay/fortune.rb +5 -12
- data/lib/vagrant/cowsay/fortune/version.rb +1 -1
- metadata +4 -3
data/lib/ext/string.rb
ADDED
@@ -1,19 +1,12 @@
|
|
1
|
-
begin
|
2
|
-
require "vagrant"
|
3
|
-
rescue LoadError
|
4
|
-
raise "This is a vagrant plugin, do not use standalone."
|
5
|
-
end
|
6
1
|
require "vagrant/cowsay/fortune/version"
|
7
|
-
|
2
|
+
require "ext/string"
|
8
3
|
|
9
|
-
module
|
4
|
+
module Vagrant
|
10
5
|
module Cowsay
|
11
6
|
module Fortune
|
12
|
-
class
|
13
|
-
|
14
|
-
|
15
|
-
puts "hello"
|
16
|
-
#'fortune'.works? and 'cowsay'.works? and system('fortune -a | cowsay')
|
7
|
+
class VagrantCowsayFortune < Vagrant.plugin("2")
|
8
|
+
name "vagrant-cowsay-fortune"
|
9
|
+
'fortune'.works? and 'cowsay'.works? and system('fortune -a | cowsay')
|
17
10
|
end
|
18
11
|
end
|
19
12
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-cowsay-fortune
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 5
|
10
|
+
version: 0.0.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Richard Wossal
|
@@ -61,6 +61,7 @@ files:
|
|
61
61
|
- LICENSE.txt
|
62
62
|
- README.md
|
63
63
|
- Rakefile
|
64
|
+
- lib/ext/string.rb
|
64
65
|
- lib/vagrant/cowsay/fortune.rb
|
65
66
|
- lib/vagrant/cowsay/fortune/version.rb
|
66
67
|
- vagrant-cowsay-fortune.gemspec
|