kuby-core 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b8199a0db99884940e43a0711cb6ec706d0828a6e553bb327f04d3370ee4c724
4
- data.tar.gz: 4a07cf9105716b0d230a3935b33205321818e414d458e99058dcd23b9abbbf99
3
+ metadata.gz: 6cec43b807b241115b8aaede84a93510a8fdbc45ebf82a79c334073b9d3cc634
4
+ data.tar.gz: f0beeedfdd8f48430c9715a4f5c2235037afbd99a7562475d40a7c0ff004e825
5
5
  SHA512:
6
- metadata.gz: 5e4a38749d22b3dc559296aeaa15cff01d4b51a2bcfd754ec1f780a8a62a849dc85723bb8ee7e2a92f24eaa16c19b5e27e2c238682da2805077507441b87bae6
7
- data.tar.gz: 6070a9a67c1aab75c1e7d1f0b7684bb6fbd899312df57aed642c5c7012d98e886a2880dfca21fec00d38646ba8cbef426fcf56e9a96ba4d4c0dc604b2aa61aa9
6
+ metadata.gz: a9b9d00b93f1734ebdb9459284b7d211bfe4610ac2ad964da9b2e57fd3618de5fce4b698d4b994d00383944a3d798925cf1ee07d884209e192f7146f1d33d369
7
+ data.tar.gz: 5725aa6ca478958cd94d53fc77a5523b38392447084e642849130fb61375f99b287da7a13989ddb2c5505f6992b83515564e7615017c212971f5306df6557d40
@@ -1,3 +1,7 @@
1
+ ## 0.5.0
2
+ * Fix Rails generators issue causing crash at startup.
3
+ * Add rake task to run arbitrary kubectl commands.
4
+
1
5
  ## 0.4.0
2
6
  * Introduce simple managed package.
3
7
  * Refactor deploy task into its own class.
@@ -1,3 +1,4 @@
1
+ require 'rails/generators'
1
2
  require 'rails/generators/base'
2
3
 
3
4
  class KubyGenerator < Rails::Generators::Base
@@ -63,6 +63,10 @@ module Kuby
63
63
  puts File.read(path)
64
64
  end
65
65
 
66
+ def kubectl(*cmd)
67
+ kubernetes_cli.run_cmd(cmd)
68
+ end
69
+
66
70
  def remote_logs
67
71
  kubernetes_cli.logtail(namespace, match_labels.serialize)
68
72
  end
@@ -1,3 +1,5 @@
1
+ require 'shellwords'
2
+
1
3
  namespace :kuby do
2
4
  def tasks
3
5
  @tasks ||= Kuby::Tasks.new(Kuby.definition)
@@ -23,6 +25,10 @@ namespace :kuby do
23
25
  tasks.print_resources
24
26
  end
25
27
 
28
+ task :kubectl, [:cmd] => [:environment] do |_, args|
29
+ tasks.kubectl(Shellwords.shellsplit(args[:cmd]))
30
+ end
31
+
26
32
  task deploy: :environment do
27
33
  Kuby.definition.kubernetes.deploy
28
34
  end
@@ -1,3 +1,3 @@
1
1
  module Kuby
2
- VERSION = '0.4.0'
2
+ VERSION = '0.5.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kuby-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cameron Dutro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-27 00:00:00.000000000 Z
11
+ date: 2020-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize