From b7d540b3a10c4ac863f8fc1a641bb1121c2d7eb2 Mon Sep 17 00:00:00 2001 From: Andreas Gerler Date: Mon, 29 Feb 2016 16:39:30 +0100 Subject: [PATCH] more on yasnippets. --- snippets/eshell-mode/aws-ec2-describe-instance-status | 2 +- snippets/eshell-mode/aws-ec2-get-console-output | 2 +- snippets/eshell-mode/aws-ec2-get-instance-details | 2 +- snippets/eshell-mode/aws-ec2-start-stop-instance | 2 +- snippets/eshell-mode/aws-elb-describe-instance-health | 2 +- snippets/eshell-mode/aws-elb-describe-load-balancer | 2 +- .../eshell-mode/aws-elb-describe-load-balancer-attributes | 2 +- snippets/eshell-mode/aws-rds-describe-parameters | 2 +- snippets/eshell-mode/aws-route53-list-resource-record-sets | 2 +- snippets/rhtml-mode/if | 7 +++++++ 10 files changed, 16 insertions(+), 9 deletions(-) create mode 100644 snippets/rhtml-mode/if diff --git a/snippets/eshell-mode/aws-ec2-describe-instance-status b/snippets/eshell-mode/aws-ec2-describe-instance-status index bc09cd40..f977daf8 100644 --- a/snippets/eshell-mode/aws-ec2-describe-instance-status +++ b/snippets/eshell-mode/aws-ec2-describe-instance-status @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -# name: aws-ec2-describe-instance-status +# name: aws-ec2-describe-instance-status (yank) # key: aws-ec2-describe-instance-status # -- aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} ec2 describe-instance-status --instance-ids ${4:`(yank)`} $0 \ No newline at end of file diff --git a/snippets/eshell-mode/aws-ec2-get-console-output b/snippets/eshell-mode/aws-ec2-get-console-output index ac12128b..425da981 100644 --- a/snippets/eshell-mode/aws-ec2-get-console-output +++ b/snippets/eshell-mode/aws-ec2-get-console-output @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -# name: aws-ec2-get-console-output +# name: aws-ec2-get-console-output (yank) # key: aws-ec2-get-console-output # -- aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} ec2 get-console-output --instance-id ${4:`(yank)`} $0 \ No newline at end of file diff --git a/snippets/eshell-mode/aws-ec2-get-instance-details b/snippets/eshell-mode/aws-ec2-get-instance-details index 808e4bda..8cad2fed 100644 --- a/snippets/eshell-mode/aws-ec2-get-instance-details +++ b/snippets/eshell-mode/aws-ec2-get-instance-details @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -# name: aws-ec2-get-instance-details +# name: aws-ec2-get-instance-details (yank) # key: aws-ec2-get-instance-details # -- aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} ec2 describe-instances --instance-ids ${4:`(yank)`} $0 \ No newline at end of file diff --git a/snippets/eshell-mode/aws-ec2-start-stop-instance b/snippets/eshell-mode/aws-ec2-start-stop-instance index 194b4d59..56546997 100644 --- a/snippets/eshell-mode/aws-ec2-start-stop-instance +++ b/snippets/eshell-mode/aws-ec2-start-stop-instance @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -# name: aws-ec2-start-stop-instance +# name: aws-ec2-start-stop-instance (yank) # key: aws-ec2-start_stop-instance # -- aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} ec2 ${4:$$(yas-choose-value '("start-instances" "stop-instances"))} --instance-ids ${5:`(yank)`} $0 \ No newline at end of file diff --git a/snippets/eshell-mode/aws-elb-describe-instance-health b/snippets/eshell-mode/aws-elb-describe-instance-health index 12ad4030..3bc7f826 100644 --- a/snippets/eshell-mode/aws-elb-describe-instance-health +++ b/snippets/eshell-mode/aws-elb-describe-instance-health @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -# name: aws-elb-describe-instance-health +# name: aws-elb-describe-instance-health (yank) # key: aws-elb-describe-instance-health # -- aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} elb describe-instance-health --load-balancer-name ${4:`(yank)`} --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0 \ No newline at end of file diff --git a/snippets/eshell-mode/aws-elb-describe-load-balancer b/snippets/eshell-mode/aws-elb-describe-load-balancer index 30d1229b..65a65bdd 100644 --- a/snippets/eshell-mode/aws-elb-describe-load-balancer +++ b/snippets/eshell-mode/aws-elb-describe-load-balancer @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -# name: aws-elb-describe-load-balancer +# name: aws-elb-describe-load-balancer (yank) # key: aws-elb-describe-load-balancer # -- aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} elb describe-load-balancers --load-balancer-name ${4:`(yank)`} --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0 \ No newline at end of file diff --git a/snippets/eshell-mode/aws-elb-describe-load-balancer-attributes b/snippets/eshell-mode/aws-elb-describe-load-balancer-attributes index a4921ba3..6a5ce089 100644 --- a/snippets/eshell-mode/aws-elb-describe-load-balancer-attributes +++ b/snippets/eshell-mode/aws-elb-describe-load-balancer-attributes @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -# name: aws-elb-describe-load-balancer-attributes +# name: aws-elb-describe-load-balancer-attributes (yank) # key: aws-elb-describe-load-balancer-attributes # -- aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} elb describe-load-balancer-attributes --load-balancer-name ${4:`(yank)`} --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0 \ No newline at end of file diff --git a/snippets/eshell-mode/aws-rds-describe-parameters b/snippets/eshell-mode/aws-rds-describe-parameters index 1b7bb275..9264b734 100644 --- a/snippets/eshell-mode/aws-rds-describe-parameters +++ b/snippets/eshell-mode/aws-rds-describe-parameters @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -# name: aws-rds-describe-parameters +# name: aws-rds-describe-parameters (yank) # key: aws-rds-describe-parameters # -- aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} rds describe-db-parameters --db-parameter-group-name ${4:`(yank)`} --query "Parameters[*][ParameterName, ParameterValue]" --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0 diff --git a/snippets/eshell-mode/aws-route53-list-resource-record-sets b/snippets/eshell-mode/aws-route53-list-resource-record-sets index 0692c350..61a6559d 100644 --- a/snippets/eshell-mode/aws-route53-list-resource-record-sets +++ b/snippets/eshell-mode/aws-route53-list-resource-record-sets @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -# name: aws-route53-list-resource-record-sets +# name: aws-route53-list-resource-record-sets (yank) # key: aws-route53-list-resource-record-sets # -- aws --profile=${1:$$(yas-choose-value '("prod" "test"))} route53 list-resource-record-sets --hosted-zone-id ${2:`(yank)`} --query \"ResourceRecordSets[?contains(Name, '$3')].Name\" --output ${5:$$(yas-choose-value '("text" "table" "json"))} $0 \ No newline at end of file diff --git a/snippets/rhtml-mode/if b/snippets/rhtml-mode/if new file mode 100644 index 00000000..24cb4967 --- /dev/null +++ b/snippets/rhtml-mode/if @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: if +# key: +$0 +<% end -%> \ No newline at end of file -- 2.47.3