firespring_dev_commands 2.2.1.pre.alpha.1 → 2.5.0.pre.alpha.1

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.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/firespring_dev_commands/audit/report.rb +2 -9
  4. data/lib/firespring_dev_commands/aws/cloudformation.rb +3 -10
  5. data/lib/firespring_dev_commands/common.rb +4 -24
  6. data/lib/firespring_dev_commands/docker/status.rb +0 -20
  7. data/lib/firespring_dev_commands/docker.rb +16 -86
  8. data/lib/firespring_dev_commands/eol/aws.rb +2 -10
  9. data/lib/firespring_dev_commands/eol.rb +2 -22
  10. data/lib/firespring_dev_commands/git.rb +23 -19
  11. data/lib/firespring_dev_commands/jira/issue.rb +1 -3
  12. data/lib/firespring_dev_commands/node.rb +1 -1
  13. data/lib/firespring_dev_commands/php.rb +12 -28
  14. data/lib/firespring_dev_commands/platform.rb +31 -38
  15. data/lib/firespring_dev_commands/ruby.rb +3 -6
  16. data/lib/firespring_dev_commands/target_process/query.rb +4 -30
  17. data/lib/firespring_dev_commands/target_process/release.rb +1 -1
  18. data/lib/firespring_dev_commands/target_process/team_assignment.rb +1 -1
  19. data/lib/firespring_dev_commands/target_process/user.rb +1 -13
  20. data/lib/firespring_dev_commands/target_process/user_story.rb +1 -1
  21. data/lib/firespring_dev_commands/target_process/user_story_history.rb +1 -1
  22. data/lib/firespring_dev_commands/target_process.rb +7 -24
  23. data/lib/firespring_dev_commands/templates/aws.rb +6 -17
  24. data/lib/firespring_dev_commands/templates/base_interface.rb +2 -2
  25. data/lib/firespring_dev_commands/templates/docker/application.rb +2 -2
  26. data/lib/firespring_dev_commands/templates/docker/node/application.rb +5 -55
  27. data/lib/firespring_dev_commands/templates/docker/php/application.rb +16 -58
  28. data/lib/firespring_dev_commands/templates/docker/ruby/application.rb +5 -54
  29. data/lib/firespring_dev_commands/templates/eol.rb +2 -9
  30. data/lib/firespring_dev_commands/templates/git.rb +0 -17
  31. data/lib/firespring_dev_commands/version.rb +1 -1
  32. data/lib/firespring_dev_commands.rb +1 -1
  33. metadata +35 -68
  34. data/lib/firespring_dev_commands/aws/route53.rb +0 -107
  35. data/lib/firespring_dev_commands/bloom_growth/rock.rb +0 -34
  36. data/lib/firespring_dev_commands/bloom_growth/seat.rb +0 -16
  37. data/lib/firespring_dev_commands/bloom_growth/user.rb +0 -43
  38. data/lib/firespring_dev_commands/bloom_growth.rb +0 -132
  39. data/lib/firespring_dev_commands/certificate.rb +0 -59
  40. data/lib/firespring_dev_commands/coverage/base.rb +0 -16
  41. data/lib/firespring_dev_commands/coverage/cobertura.rb +0 -86
  42. data/lib/firespring_dev_commands/coverage/none.rb +0 -21
  43. data/lib/firespring_dev_commands/docker/desktop.rb +0 -59
  44. data/lib/firespring_dev_commands/eol/node.rb +0 -37
  45. data/lib/firespring_dev_commands/eol/php.rb +0 -45
  46. data/lib/firespring_dev_commands/eol/ruby.rb +0 -37
  47. data/lib/firespring_dev_commands/jira/parent.rb +0 -19
  48. data/lib/firespring_dev_commands/os.rb +0 -35
  49. data/lib/firespring_dev_commands/port.rb +0 -24
  50. data/lib/firespring_dev_commands/target_process/time.rb +0 -32
  51. data/lib/firespring_dev_commands/templates/aws/services/route53.rb +0 -106
  52. data/lib/firespring_dev_commands/templates/certificate.rb +0 -41
@@ -1,106 +0,0 @@
1
- require_relative '../../base_interface'
2
-
3
- module Dev
4
- module Template
5
- class Aws
6
- module Services
7
- # Class contains rake templates for managing your AWS settings and logging in
8
- class Route53 < Dev::Template::BaseInterface
9
- # Create the rake task which ensures active credentials are present
10
- def create_ensure_credentials_task!
11
- # Have to set a local variable to be accessible inside of the instance_eval block
12
- exclude = @exclude
13
-
14
- DEV_COMMANDS_TOP_LEVEL.instance_eval do
15
- return if exclude.include?(:ensure_aws_credentials)
16
-
17
- task ensure_aws_credentials: %w(init) do
18
- raise 'AWS Credentials not found / expired' unless Dev::Aws::Credentials.new.active?
19
- end
20
- end
21
- end
22
-
23
- # Create the rake task for the hosted zone method
24
- def create_dns_logging_activate_task!
25
- # Have to set a local variable to be accessible inside of the instance_eval block
26
- exclude = @exclude
27
-
28
- DEV_COMMANDS_TOP_LEVEL.instance_eval do
29
- namespace :aws do
30
- return if exclude.include?(:dns_logging)
31
-
32
- namespace :hosted_zone do
33
- namespace :dns_logging do
34
- desc 'Activates query logging for all hosted zones by default.' \
35
- 'This command should be run from the account the hosted zone(s) reside.' \
36
- "\n\t(Required) Specify LOG_GROUP_ARN='arn:aws:logs:REGION:ACCOUNT_ID:' to specify the ARN of the target log group." \
37
- "\n\toptionally specify DOMAINS='foo.com,foobar.com' to specify the hosted zones to activate." \
38
- "\n\t\tComma delimited list."
39
- task activate: %w(ensure_aws_credentials) do
40
- route53 = Dev::Aws::Route53.new(ENV['DOMAINS'].to_s.strip.split(','))
41
- # Use user defined log group.
42
- log_group = ENV.fetch('LOG_GROUP_ARN', nil)
43
- raise 'The Hosted Zone Log Group ARN, LOG_GROUP_ARN, is required' unless log_group
44
-
45
- route53.activate_query_logging(log_group)
46
- end
47
- end
48
- end
49
- end
50
- end
51
- end
52
-
53
- # Create the rake task for the hosted zone method
54
- def create_dns_logging_deactivate_task!
55
- # Have to set a local variable to be accessible inside of the instance_eval block
56
- exclude = @exclude
57
-
58
- DEV_COMMANDS_TOP_LEVEL.instance_eval do
59
- namespace :aws do
60
- return if exclude.include?(:dns_logging)
61
-
62
- namespace :hosted_zone do
63
- namespace :dns_logging do
64
- desc 'Deactivates query logging for all hosted zones by default. ' \
65
- 'This command should be run from the account the hosted zone(s) reside.' \
66
- "\n\toptionally specify DOMAINS='foo.com,foobar.com' to specify the hosted zones to activate." \
67
- "\n\t\tComma delimited list."
68
- task deactivate: %w(ensure_aws_credentials) do
69
- route53 = Dev::Aws::Route53.new(ENV['DOMAINS'].to_s.strip.split(','))
70
- route53.deactivate_query_logging
71
- end
72
- end
73
- end
74
- end
75
- end
76
- end
77
-
78
- # Create the rake task for the hosted zone method
79
- def create_list_query_config_task!
80
- # Have to set a local variable to be accessible inside of the instance_eval block
81
- exclude = @exclude
82
-
83
- DEV_COMMANDS_TOP_LEVEL.instance_eval do
84
- namespace :aws do
85
- return if exclude.include?(:dns_logging)
86
-
87
- namespace :hosted_zone do
88
- namespace :dns_logging do
89
- desc 'Lists the current config for domain(s). ' \
90
- 'This command should be run from the account the hosted zone(s) reside.' \
91
- "\n\toptionally specify DOMAINS='foo.com,foobar.com' to specify the hosted zones to activate." \
92
- "\n\t\tComma delimited list."
93
- task list_query_configs: %w(ensure_aws_credentials) do
94
- route53 = Dev::Aws::Route53.new(ENV['DOMAINS'].to_s.strip.split(','))
95
- route53.list_query_configs
96
- end
97
- end
98
- end
99
- end
100
- end
101
- end
102
- end
103
- end
104
- end
105
- end
106
- end
@@ -1,41 +0,0 @@
1
- require_relative 'base_interface'
2
-
3
- module Dev
4
- module Template
5
- # Class contains rake templates for managing configured certificates
6
- class Certificate < Dev::Template::BaseInterface
7
- attr_reader :domains, :email, :paths
8
-
9
- def initialize(domains, email:, paths:, exclude: [])
10
- @domains = domains
11
- @email = email
12
- @paths = Array(paths)
13
-
14
- super(exclude:)
15
- end
16
-
17
- # Create the rake task for the generate method
18
- def create_generate_task!
19
- # Have to set a local variable to be accessible inside of the instance_eval block
20
- domains = @domains
21
- email = @email
22
- paths = @paths
23
- exclude = @exclude
24
-
25
- DEV_COMMANDS_TOP_LEVEL.instance_eval do
26
- return if exclude.include?(:generate)
27
-
28
- namespace :certificate do
29
- desc 'Requests a new certificate for the configured domain using the route53 validation and deposits it in the configured paths'
30
- task generate: %w(init_docker ensure_aws_credentials) do
31
- Dev::Docker.new.pull_image('certbot/dns-route53', 'latest')
32
- c = Dev::Certificate.new(domains, email)
33
- c.request
34
- paths.each { |path| c.save(path) }
35
- end
36
- end
37
- end
38
- end
39
- end
40
- end
41
- end