ruby-cute 0.13 → 0.24

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d49efb970f8f16ed726038af0c0b7ff4a784ef6224b9f9c93be5da2b9e45ab54
4
- data.tar.gz: f852b0ef02f3e9c57d9ce9575cd3fa0ff9ce6992773068699f7e5de0851ecad7
3
+ metadata.gz: ecc3c92c1122fbdbf8715cebaf1fffc44d454f7ede6ed509e1fd8c659ac9e3b4
4
+ data.tar.gz: c577bd141aee6adc229a6a6344d99c5143a7bb8a7a8009ecb17ac5baa6bb1b83
5
5
  SHA512:
6
- metadata.gz: 15dba2fa27ca9cb7c6f486d0580f9b872ec912e410557f3eb41f7bcc8f28625c6b841730e2b3d0c72858dc6c6e06aaf1f18e8d0f3a2a5fb7cbeb66742c3650f6
7
- data.tar.gz: d7096e3d2730da5099159bbfc8869628d91e7e1f7583b5ba9a8c7db56ca5a02998342aa8aabcefe598939de10b64fb78d5b7aefac1eec608b287b4d7323911f3
6
+ metadata.gz: c41466e40b466aba5ec11fed51b783021d5b0a0840b30b5a1017578700771f308add76dd9297124dc0c680cbb552f54aa67173fb770202c1b58eb194136ef0be
7
+ data.tar.gz: 70367ebeb0447db57539a69176f8c9cfa1f664572a0165a64c0a9056eb076045e1f063794197eacaf188d985e29dd59accdfbedc075d88a5e2b8bfc7839f133a
data/.gitlab-ci.yml CHANGED
@@ -4,14 +4,32 @@ variables:
4
4
 
5
5
  # Another stage is needed for the deployment (so that files are already generated by the previous job)
6
6
  stages:
7
+ - lint
8
+ - test
7
9
  - build
8
10
  - deploy
9
11
 
12
+ include:
13
+ - project: 'grid5000/grid5000-gitlab-templates'
14
+ ref: master
15
+ file: '/rubocop.yml'
16
+
17
+ test:
18
+ stage: test
19
+ tags:
20
+ - grid5000-docker
21
+ image: debian:bullseye
22
+ script:
23
+ - apt-get update && apt-get -y --no-install-recommends install devscripts build-essential equivs
24
+ - mk-build-deps -ir -t 'apt-get -y --no-install-recommends'
25
+ - rspec
26
+
27
+
10
28
  build:
11
29
  stage: build
12
30
  tags:
13
31
  - grid5000-docker
14
- image: debian:stretch
32
+ image: debian:bullseye
15
33
  script:
16
34
  - apt-get update && apt-get -y --no-install-recommends install devscripts build-essential equivs
17
35
  - mk-build-deps -ir -t 'apt-get -y --no-install-recommends'
@@ -34,3 +52,4 @@ push-package:
34
52
  when: manual
35
53
  script:
36
54
  - g5k-deploy-files --only-if-tag --debian --directory deb/ruby-cute
55
+ allow_failure: false
data/README.md CHANGED
@@ -6,6 +6,16 @@ aggregating various Ruby snippets useful in the context of (but not limited to)
6
6
  development of experiment software on distributed systems testbeds such as
7
7
  Grid'5000.
8
8
 
9
+ Ruby-Cute also includes the **grd** command line utility, that provides a
10
+ modern interface to typical Grid'5000 workflows. As an example, `grd bootstrap -s
11
+ ly -l nodes=3 -w 0:10 -e debian11-x64-min -f setup-script -c` will reserve 3
12
+ nodes on the *lyon* site, provision the *debian11-x64-min* environment, run
13
+ *setup-script* on the first node, and then connect interactively using SSH.
14
+
15
+ For more information about how to use **grd**, run `grd --help` and `grd
16
+ bootstrap --help` on any frontend. **grd** can also work from your own computer
17
+ (outside Grid'5000).
18
+
9
19
  ## Installation
10
20
 
11
21
  To install latest release from [RubyGems](https://rubygems.org/gems/ruby-cute):
@@ -22,7 +32,8 @@ $ gem build ruby-cute.gemspec
22
32
  $ gem install --user-install ruby-cute-*.gem
23
33
  ```
24
34
 
25
- Then, type the following for having ruby cute in your path (this is only necessary if you want to use interactive mode).
35
+ Then, type the following to have ruby-cute in your path (this is only necessary
36
+ if you want to use the executables included in ruby-cute, such as grd).
26
37
 
27
38
  ```bash
28
39
  $ export PATH=$PATH:$(ruby -e 'puts "#{Gem.user_dir}/bin"')
data/bin/cute CHANGED
@@ -4,7 +4,8 @@ require 'tmpdir'
4
4
  ROOT_DIR= File.expand_path('../..',__FILE__)
5
5
  BIN_DIR= File.join(ROOT_DIR,"bin")
6
6
 
7
- if `which pry` && $?.success? then
7
+ pry_path = `which pry`
8
+ if pry_path && $?.success? then
8
9
  PRY_BIN="pry"
9
10
  elsif File.exist?("~/.gem/bin/pry")
10
11
  PRY_BIN="~/.gem/bin/pry"