itamae-plugin-recipe-ros 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: e78b88e239cb61917ea28f829e040056d108b710
4
+ data.tar.gz: 84024a8cb095e34f2dd879ef804e587e4da318d7
5
+ SHA512:
6
+ metadata.gz: cb721e473f34ca752817441f810ffcbc95638c89b46ba14229e00d5ca8243776924935f43a4451b4a9acd86be98985134e1329a55bfd8adbd30751e250c6dc3d
7
+ data.tar.gz: 2d1abfe99c7b53006b3d2ff0c05e1869a29b64fc499dabe58e15702429fd1cebc230df135a5d875fd2f8b6f1ff32c245736753fd8715570c8f2b0268aed5cec2
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # itamae-plugin-recipe-ros
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/itamae-plugin-recipe-ros.svg)](http://badge.fury.io/rb/itamae-plugin-recipe-ros)
4
+
3
5
  itamae plugin to install ros on each platform.
4
6
 
5
7
  ## Installation
@@ -20,7 +22,22 @@ Or install it yourself as:
20
22
 
21
23
  ## Usage
22
24
 
23
- TODO: Write usage instructions here
25
+ ### Recipe
26
+
27
+ ```ruby
28
+ # your recipe
29
+ include_recipe "ros::install"
30
+ ```
31
+
32
+ ### Node
33
+
34
+ *your node example*
35
+
36
+ ```yaml
37
+ ros:
38
+ distribution: indigo
39
+ install-target: desktop-full
40
+ ```
24
41
 
25
42
  ## Development
26
43
 
@@ -2,7 +2,7 @@
2
2
  case node[:platform]
3
3
  when "debian", "ubuntu"
4
4
  execute 'Setup sources.list' do
5
- command 'sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list''
5
+ command 'sudo sh -c \'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list\''
6
6
  end
7
7
 
8
8
  execute 'Setup keys' do
@@ -12,21 +12,24 @@ when "debian", "ubuntu"
12
12
  execute 'Update package list' do
13
13
  command 'sudo apt-get update -y'
14
14
  end
15
-
15
+
16
16
  package "ros-" + node[:'ros']['distribution'] + "-" + node[:'ros']['install-target'] do
17
- options "--force-yes"
17
+ options "-y"
18
18
  end
19
19
 
20
20
  execute 'Initialize rosdep' do
21
+ not_if 'test -e /etc/ros/rosdep/sources.list.d/20-default.list'
21
22
  command 'sudo rosdep init && rosdep update'
22
23
  end
23
24
 
24
25
  execute 'Environment setup' do
25
- command 'echo "source /opt/ros/indigo/setup.bash" >> ~/.bashrc && source ~/.bashrc'
26
+ add_cmd = "source /opt/ros/%s/setup.bash" % node[:'ros']['distribution']
27
+ not_if 'grep "%s" ~/.bashrc' % add_cmd
28
+ command 'echo "%s" >> ~/.bashrc && source ~/.bashrc' % add_cmd
26
29
  end
27
30
 
28
31
  execute 'source setup.bash' do
29
- command 'source /opt/ros/indigo/setup.bash'
32
+ command 'source /opt/ros/%s/setup.bash' % node[:'ros']['distribution']
30
33
  end
31
34
 
32
35
  when "redhat", "fedora"
@@ -2,7 +2,7 @@ module Itamae
2
2
  module Plugin
3
3
  module Recipe
4
4
  module Ros
5
- VERSION = "0.1.1"
5
+ VERSION = "0.1.2"
6
6
  end
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,46 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itamae-plugin-recipe-ros
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
5
- prerelease:
4
+ version: 0.1.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Daiki Maekawa
9
8
  autorequire:
10
9
  bindir: exe
11
10
  cert_chain: []
12
- date: 2015-08-08 00:00:00.000000000 Z
11
+ date: 2015-08-14 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: bundler
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
19
  version: '1.10'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
26
  version: '1.10'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rake
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ~>
31
+ - - "~>"
36
32
  - !ruby/object:Gem::Version
37
33
  version: '10.0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ~>
38
+ - - "~>"
44
39
  - !ruby/object:Gem::Version
45
40
  version: '10.0'
46
41
  description: Itamae plugin to install ros on each platform.
@@ -50,41 +45,37 @@ executables: []
50
45
  extensions: []
51
46
  extra_rdoc_files: []
52
47
  files:
53
- - .gitignore
48
+ - ".gitignore"
54
49
  - Gemfile
55
50
  - LICENSE
56
51
  - README.md
57
52
  - Rakefile
58
- - bin/console
59
- - bin/setup
60
53
  - itamae-plugin-recipe-ros.gemspec
61
54
  - lib/itamae/plugin/recipe/ros.rb
62
- - lib/itamae/plugin/recipe/ros/.gitkeep
63
55
  - lib/itamae/plugin/recipe/ros/install.rb
64
56
  - lib/itamae/plugin/recipe/ros/version.rb
65
57
  homepage: https://github.com/DaikiMaekawa/itamae-plugin-recipe-ros
66
58
  licenses:
67
59
  - MIT
60
+ metadata: {}
68
61
  post_install_message:
69
62
  rdoc_options: []
70
63
  require_paths:
71
64
  - lib
72
65
  required_ruby_version: !ruby/object:Gem::Requirement
73
- none: false
74
66
  requirements:
75
- - - ! '>='
67
+ - - ">="
76
68
  - !ruby/object:Gem::Version
77
69
  version: '0'
78
70
  required_rubygems_version: !ruby/object:Gem::Requirement
79
- none: false
80
71
  requirements:
81
- - - ! '>='
72
+ - - ">="
82
73
  - !ruby/object:Gem::Version
83
74
  version: '0'
84
75
  requirements: []
85
76
  rubyforge_project:
86
- rubygems_version: 1.8.23
77
+ rubygems_version: 2.4.5
87
78
  signing_key:
88
- specification_version: 3
79
+ specification_version: 4
89
80
  summary: Itamae plugin to install ros on each platform.
90
81
  test_files: []
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "itamae/plugin/recipe/ros"
5
-
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
12
-
13
- require "irb"
14
- IRB.start
data/bin/setup DELETED
@@ -1,7 +0,0 @@
1
- #!/bin/bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
-
5
- bundle install
6
-
7
- # Do any other automated setup that you need to do here
File without changes